Only show CCK:Blocks, if field has content

no2e - September 16, 2008 - 04:00
Project:CCK Blocks
Version:6.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:by design
Description

I installed CCK Blocks and it works great,
but it also shows me the blocks at node view (or that is to say: the title of the blocks), if the user did not enter any content into the particular cck field.

Is it possible to only show the blocks, if they have to present content?

#1

no2e - September 17, 2008 - 19:44

No idea?

#2

no2e - September 17, 2008 - 22:29

I tried to limit the visibility only to the nodes where I used the ckk fields -> the CCK:Blocks show the title at any time
I tried to set the visibilty to everywhere -> the CCK:Blocks show the title at any time

But: there is one cck field, that only get's displayed, when there is data filled in. But it has the very same settings as the other fields too. And oddly enough the title appears sometimes, when there is no content, but disappears later again. I tried to clear cache but I can't see any regularity.

#3

no2e - October 9, 2008 - 13:57

bump, still got this problem.

#4

no2e - October 9, 2008 - 13:59
Category:support request» bug report

#5

Earl Grey - May 4, 2009 - 12:20

Do you still have this problem? I'm using CCK blocks with empty fields in some nodes and the block is not displayed there.

#6

no2e - May 4, 2009 - 15:28

Can't tell at the moment, because I stopped using this module because of the issue CCK Block shows everything in one line

#7

Earl Grey - May 15, 2009 - 07:35
Status:active» by design

That issue will be fixed in the next -dev release. I close this issue. Please re-open it or create a new one, if you have the problem again. Please provide information about the field type, you have this problem with. This is important, as we do only display the content, that is provided by the corresponding module. We ask the module, providing your field, to format its content and display it in the block.

If the module gives us more than an empty string, even if the field is empty, the block is visible (or at least it's title).

 
 

Drupal is a registered trademark of Dries Buytaert.