Hi,

Thanks for the module. I enabled it and I am now able to make my cck fields as blocks. However, when selecting any of these blocks in the blocks list, there is a problem. Basically, I am unable to see any of these newly created blocks on my website. Essentially, saving the blocks work but I do not see my blocks in any of the regions where I inserted these blocks. Any help would be more than welcome.
Thanks,
T

Comments

Anonymous’s picture

You can't see the blocks right after inserting them, as the block configuration page does not provide data for your field. Please check a node of the content type containing the field you selected for being available as block.

Tafa’s picture

Thanks for your feedback Earl. However, I think I did not explain the issue appropriately. Basically, I have cck fields in Content profile. These cck fields were created to complement the existing profile that comes with Content profile. I added data such as name, surname, etc. to these cck fields. I have then installed CCK blocks to turn these fields into blocks. So far, it all works. When I check my block list in mysite/admin/build/blocks, I can see these new CCK fields. When I select any of these cck fields, they move to the desired position on the layout. However, after saving this new configuration, I cannot see, either in the block page or another node where the content type, these CCK fields.
Thus, I must be doing something wrong. Let me know wheat you think if possible. I tried to find a way around and so far, this has not been possible.
Thanks
T

Anonymous’s picture

okay, you can't see the block on the block configuration page. That's because that page doesn't have a field corresponding to your block.

I don't know, how content profile works. If it creates a node for each user profile, then you might be able to use cck_blocks with content profile. Did you test cck_blocks for another content type, that is not used with content profile? Could you make some screenshots of a content type 'test' with a field exposed as block? Please sreenshot all configuration options for the field, the block configuration page and at least one test node.

Tafa’s picture

Hi,

Thanks for your swift replyt. I checked with another content type and the result is similar. It does not show my block on the page. I will add screenshot tomorrow to confirm.
Thanks
T

Tafa’s picture

HI,

Okay, I was trying to get screenshots when I tried something else. I created a view of Content Profile CCK fields and passed them through a filter "Current User:YES". In this way, I was able to view these CCK fields (although all of them and not the ones related to the current user). Turns out that I was able to see them in a block region. So, this means that I had to create a filter first to see the info. In other words, the current module did not do much and perhaps should incorporate a feature for current users. What do you think?
Thanks
T

Anonymous’s picture

Title: CCK blocks not showing up in regions or elsewhere. » Make cck_blocks compatible to content profile
Category: bug » feature

I think that this issue is a fueature request. If I got you rigth, cck_blocks is basicly working for you but not for fields on a user page, right? So we should somehow get a connection between cck_blocks and content_profile.

Tafa’s picture

Yes, that is correct. If you don't tell drupal to connect CCK blocks to a user profile, then there would be no data on display. What I did was this:
1- Create a view type user
2- Select fields (user name+ CCK fields)
3- Use Filter: Current=Yes
4- Add a relationship Node=Content Profile
5- Create a block as well as the view created above.

Display this block in region or anywhere else I wanted.
Thus, as you can see, unless there is an opportunity to add custom view details into CCK blocks modules, the user profile part might not be benefit from this module. Yet, I want to use it because of theming opportunities and ease of use.

Hope this helps.
Thanks again for your replies
T

gateone’s picture

I stumbled across this, too, today. And I thought: that is weird, because on one existing site I run I have exactly this combination: CCK, Content Profile, CCK Blocks. And it worked very nicely together.

Basically Content Profile does not alter a lot around a node. It simply restricts creation of a node type to one node per user, and ties this node into the profile page of the user. So there is nothing that should interfere here.

But as I said: I could exactly replicate what Earl Gray wrote and was confused.

So I set up an new Drupal install with just CCK and CCK Blocks to see if any other module might be to blame. And while setting up things I instantly noticed what I had done wrong and why with Earl Gray, the blocks do not show up:

When there are a lot of CCK fields around and you got other modules which interact with CCK fields (such as content taxonomy or imagecache), the field configuration page can become a bit crowded. What you easily overlook here is that after creating the field, right ON the field configuration page, there is a checkbox to also enable the field as a block.

You do get confused and can overlook it, because when you are used to working a lot with CCK fields, you usually know that most of the settings can just remain on their default on a field configuration page and you only tweak some items to make them behave as you like. So you jump down and safe and head for the CCK Blocks tab in the field visibility page. And there you neatly have an checkbox to omit the data, as well as the basic configuration of how you would like your CCK field content to be displayed. So you think: hey great, I have all set up and head for the blocks configuration page and, uhuh... the block does not show up.

So you start searching and making all kinds of assumptions, and thinking any node or CCK field altering module could be to blame. But you simply just forgot to tick the box "Provide block for this field" in the CCK field configuration page, usually at the very bottom of this page.

@Earl Gray: can you double-check this and send your feedback, please?! This was exactly what went wrong on my latest project as I just overlooked that item here!

@Tafa: I guess what can get confusing is that during the evolution of the CCK Block module (which by the way I love dearly!!!) various settings and options have been moved around considerably to make the module better over time. Maybe it is possible to NOT display the CCK Block tab in the visibility settings for CCK fields if the checkboy "Provide block for this field" is NOT activated. I guess this can reduce some searching around for users!

Stephan