Hi,

I was wondering if it's possible to show a block based on the content of a cck field. E.g. I want to show a block that contains some links, but I only want to display that block on nodes from a specific node type AND with specific content in a CCK field I created.

Is this possible? Would be very nice!

Comments

brakkevh’s picture

Or maybe it is possible to use a mysql query? So that if the query yields a result the block will be shown?
And if the query does not give results, no block will appear?

sjf’s picture

CCK Blocks would do what you need. You can use the php snippet here in the block configuration to only show on certain node types.

Be aware that CCK blocks creates a block for every CCK field you have. If you have a lot of fields, your block settings page may be very cluttered and slow. If so, you may want to avoid CCK blocks and try the snippet here instead.

dpearcefl’s picture

Assigned: brakkevh » Unassigned
Status: Active » Closed (fixed)

Considering the lack of activity on this issue and that a solution was offered, I am going to close this ticket.