开发者

How do I display a block matching page and content type criteria?

开发者 https://www.devze.com 2023-03-19 02:09 出处:网络
I have some Views which display specific content types. On these views I want to display a block containing a menu.

I have some Views which display specific content types.

On these views I want to display a block containing a menu.

What I have found is that I can restrict the block containing the menu to certain pages and include the views in those pages, and this works fine but when a user clicks on the teaser through to the actual article it is no longer in the page list and so doesn't display the menu.

I can also restrict the menu block to specific content types in which case the situation is reversed i.e. it displays on the page containing the node (because it is of the content type) but not on the page containing the view.

开发者_StackOverflowIs there a way I can display a block so that it meets both a specific page criteria and a content type criteria?


If I'm understanding you correctly... In the block's configuration page you can choose which pages to show the block. If your content type was article, and your view was a page display with a path of path/to/view, you could use settings like this:

How do I display a block matching page and content type criteria?

0

精彩评论

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

关注公众号