Closed (fixed)
Project:
CCK Blocks
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 Sep 2008 at 16:08 UTC
Updated:
10 Nov 2009 at 11:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
himtuna commentedclose it
sol: add
after evert allowed values
Comment #2
no2e commentedI got the same problem. Output is
No spaces between the links, without any markup (list would be useful)
Comment #3
himtuna commentedin th allowed values I added a br tag.
tyr this
<div class="content"><a href="foobar1">foobar1</a><br /><a href="foobar2">foobar2</a><a href="foobar3">foobar3</a></div>Gamers' Den
Comment #4
no2e commentedWhat do you mean? Allowed values? Where did you add it?
Comment #5
himtuna commentedIn the cck fields.
Go to
>content types
>manage fields (select your desired field)
>then at the bottom you see, allowed values.
after every allowed value I added a
tag.
____________________________________________
Gamers' Den
Comment #6
no2e commented@himtuna:
Hmmm, I use CCK fields with Content Taxonomy. I can't find any option "Allowed values" in the configuration of the fields.
Does it work for you for "free tagging" fields, too?
Comment #7
himtuna commentedSorry budy never tried with taxonomy terms. I'll see more into the matter afterwards. I got my exams, will over by friday (IST:GMT+5.30)
Till than Take Care.
Gamers' Den
Comment #8
no2e commentedGot still this problem.
All terms are displayed in one line (without space between each one).
They should use HTML list (ul) markup.
Any idea?
Comment #9
no2e commentedComment #10
himtuna commentedyou have taxonomy terms attached to a cck fields...........................
why not you try using
http://drupal.org/project/tagadelic
http://drupal.org/project/nodecloud
because i dont think without hacking the core you'll be able to add the separator token between values.
Comment #11
no2e commentedMaybe I'm wrong, but: nodecloud or tagadelic don't offer the feature of CCK Blocks (do they?)
I want to display the terms wich are assigned to a single node (1.) in blocks, (2.) sorted by vocabulary.
Default Drupal behaviour is displaying all terms together mixed up in the body.
So, if a node has the terms "football" (Vocabulary: Sports) and "cats" (Vocabulary: Animals),
Drupal (default) outputs the following:
With CCK Blocks I get the output:
If I'm right, tagadelic outputs all terms (of all selected vocabularies), wheter they are tagged to a specific node or not. Or am I wrong?
In my opinion it should be the default behaviour of this module. I mean ... it's kind of a list (and you can style a list via CSS in whatever way you want). Semantically: outputting tagged terms is listing tagged terms. And listing in HTML is using
ul.Comment #12
no2e commentedI was partly wrong: tagadelic offers "Tags for the current post", which lists(!) all tags assigned to the node. But it offers no deeper configuration. So all vocabularies get listed (but only those, which use "Tags" - but I got several vocabularies without tags) and each vocabulary is linked to it's tagadelic page (which is not what I always want).
So, I think CCK Blocks should be the right choice for more specific needs.
Comment #13
himtuna commentedtryy these mods
http://drupal.org/project/block_class
http://drupal.org/project/blocktheme
Comment #14
KathyIce commentedI am using CCK Blocks with node reference... so I don't get a lot of HTML to work with. However, for this case, I managed to work around this problem by overriding the tag in my style sheet:
.block-cck_blocks .content a {
display: list-item;
}
Comment #15
no2e commented@#13 himtuna:
"block_class" would only let me change the CSS, and not the HTML, or am I wrong?
"blocktheme": will it allow me to change the HTML output? Didn't get it completly at the moment, will look into it.
@#14 KathyIce:
Unfortuneately, this is no solution for me, because it's the CSS only (and not the HTML markup).
Comment #16
no2e commentedbump
Comment #17
Fanaile commentedHi;
I'm having the same problem with links appearing all on one line (you can see here: http://the-fiction-addiction.com/book-review/21-humanizing-anne-boleyn). I cannot find anything that reads "Allowed Values" for me to edit to place the edits mentioned about.
The field is called "field_book_links" (Buy or Reserve Your Copy).
Has anyone had any luck with this yet? Thanks
Comment #18
Anonymous (not verified) commentedI can't see links in one line, on none of the websites linked here. Please describe the problem more detailed. Styling your output is not this modules business. Maybe you can post a link, where we can see the actual problem.
Comment #19
no2e commentedHave no online version of it (because I stopped using this module), but I got the markup described in #2, when I used Content Taxonomy.
Comment #20
Anonymous (not verified) commentedWhat is the output of this field, if you display it with the main content and not with CCK blocks?
Comment #21
Fanaile commented@forschi;
Sorry, I had disabled the block a few days after I wrote that up; I've re-enabled the block so you can see it now.
Comment #22
Anonymous (not verified) commentedWhat field type are you using for the links? Did you install an aditional module for the links?
I'm setting up a test page to reproduce this bug. At the moment, I have cck and cck_blocks installed. Do I need anything else to reproduce it?
Comment #23
Anonymous (not verified) commentedokay, I identified the problem in the way, items are displayed at the moment. They are only put into the nodes content, each with:
$block['content'] .= module_invoke('content', 'format', $fields[$delta], $item, $settings['formatter'], $node);I created a patch that solves the problem (quick, but dirty). I created the task #458700: Implement hook_theme() to enalbe users to provide a template for each of the cck_blocks, so we can use theming for this purpose in the future.
Please have a look at the patch, if it solves the problem for you.
Comment #24
Fanaile commentedThanks, I'll take a look at this as soon as I can.
I'm in the middle of transferring another of my sites over to a new server, so it may take me a couple days if someone has a chance to get to it before I do.
Comment #25
Anonymous (not verified) commentedComment #26
david lesieur commentedI was expecting CCK Blocks to use the usual field templates (for example,
content-field.tpl.phpandcontent-field-field_myfield.tpl.php), but it did not. To get a consistent output in node views and CCK Blocks, the most logical approach seems to go through drupal_render(), which will take care of the theming layer. To do so, we have to first build the $node->content array, so the next logical step is to add a new build mode for CCK.So that is what this new patch does.
The benefits of this patch:
To achieve this, CCK Blocks now works slightly differently:
admin/content/node-type/NODETYPE/display/cck_blocks. You may want to check "Exclude" next to each field that you don't plan to use in a block.I'm just beginning to experiment with this patch, but so far it seems to work nicely.
Comment #27
david lesieur commentedOops, please ignore the above patch. This is the right one.
Comment #28
Anonymous (not verified) commentedThanks David for that patch. Unfortunately, it is such an effort, to apply patches on windows, that I'm not able, to test it.
It seems, that you considered #465326: content_format() does not handle multiple values correctly, but I want to link to that here to keep all information together.
Best wishes,
forschi
Comment #29
david lesieur commented@forschi: Yes, with the proposed patch above, multiple values are handled properly.
For applying patches under Windows, you might want to install Cygwin. With Cygwin, you can get a Unix shell and patch utilities; this makes patching files a breeze. There is some info here.
Comment #30
Anonymous (not verified) commentedOkay, it seems to work for me, too. Thanks for that. The patch is committed to -dev.
By the way: cygwin is the worst crap I've ever seen. Didn't get it to work. Lost time. I'm now using eclipse and everything seems to be fine.
Comment #31
Anonymous (not verified) commentedFixed in -dev.