开发者

Filtering out node by title

开发者 https://www.devze.com 2023-01-06 14:31 出处:网络
I have a site running in Drupal 6 and I\'m using Views to display content from several feeds I am importing.

I have a site running in Drupal 6 and I'm using Views to display content from several feeds I am importing.

There is a node being created in one of the feeds that I do not want to have shown (or even created at all, if I can help it) & there doesn't appear to be a way to negatively filter out nodes from being displayed by title. Is there a way to do this with any efficiency or might there be some other hack around this?

Thanks in开发者_如何学Go advance for any help you can provide.

-B


Views does allow you to filter out a node with a specific title. On the edit-view page, do the following:

  • Click the [+] on the Filters box
  • Check 'Node: Title' and click [Add]
  • Select 'Is not equal to' as operator and enter the unwanted title as value
  • Click [Update] and save your view


Why don't you just unpublish the nodes you don't want and add a filter for 'node:published = yes'. Unless the nodes you want to hide always have certain words in the title it will be hard to do it with a title filter.

0

精彩评论

暂无评论...
验证码 换一张
取 消