reptag cck blocks not working properly

wildmtsky - September 14, 2008 - 20:38
Project:Rep[lacement]Tags
Version:5.x-1.9
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I have watch this video over and over http://dl.getdropbox.com/u/8336/2008-06-12_reptag%2Bcckblocks.swf and read through all of the other support requests and I am sure I am missing something silly.

I made a css class for my div and turned it bright blue so I know it is at least recognizing my cckblock.

I have all the right permissions. I added site-wide reptags with the following info:

FACTS ====> <div class="facts">{Block:cck_blocks: CCK Facts}</div>

The addt'l reptag is available. And when I use it I get bright blue text that says {Block:cck_blocks: CCK Facts}.

What I am missing?

#1

westwesterson - September 21, 2008 - 22:05

"not sure exactly" what is being asked here, but have you tried adding the cck field to the content type?

#2

wildmtsky - September 22, 2008 - 17:49

Thanks for reply! Yes, I have created created 3 different cck fields to be referenced. Per the rep[lacement] tags video, they say to use $FACTS$ (one of my cck fields is called facts) to call it in the body of text.

I see that the tag is available for use, so I believe I have it set up right but the docs aren't posted so I don't know for sure.

I guess what I am asking is: are there any more quick and dirty "how-tos" for this module? Because I am missing a step or something.

#3

renee - September 24, 2008 - 15:41

I think it's actually not working - I fought with it for awhile in 6, and I can get internal stuff working - NID, DATE, etc, but anything that calls 'outside' doesn't work. It doesn't seem to matter what input format or what settings or what node-type, etc. I think there may be a conflicting module or something. Very frustrating, because this would otherwise be the bestest module ever.

#4

mark_anthony - September 24, 2008 - 20:26

I was having same problem. I am not sure, but the video demo may have been showing a slightly different version of CCK Blocks. I think I got the Rep tags to work when I put:
{BLOCK:cck_blocks:field_callout}
Where "field_callout" is the "name" or "Field name" of the CCK Block and not its "label".

I am having trouble with the 'div class="myclass"' that I am trying to add to my Rep tag. I t does not show up in the final html.

#5

mark_anthony - September 24, 2008 - 20:26

#6

renee - September 24, 2008 - 21:42

Sigh. It's hard to tell because the documentation disappeared :(

#7

wildmtsky - September 27, 2008 - 15:53

mark_anthony

Could you explain more about the field vs label? I think we are having a similar issue. I can see my created tag in the available tags and it will accept my css changes so I have the naming convention right, but the trouble is that it is not pulling the data. It is pulling just the label..

#8

profix898 - September 27, 2008 - 18:51

Does it work if you put {Block:cck_blocks: CCK Facts} into your node body directly? Does it work with some other tag like {BLOCK:system:0} (which should be the "Powered by Drupal" button)? I just tried and everything appeared working for me ...

#9

westwesterson - September 27, 2008 - 19:38
Title:Not sure exactly» reptag cck blocks not working properly

adding a descriptive title.

#10

renee - September 27, 2008 - 20:11

{BLOCK} works for me, and {SYSTEM}. {NODE} works intermittently - {NODE:156}, for instance, just doesn't return anything, but {NID} returns the current nid.

#11

profix898 - September 27, 2008 - 21:15

We should think about making these kind of tags more robust. Also it should be noted that all this stuff is case-sensitive and sensitive to additional whitespace characters and such. Otherwise I dont see why it should work in one case but not the other ... Can anyone provide a list of samples for working vs. not working tags so that I can see what the problem is?

P.S. I hope to get the documentation back online in the next 1-2 weeks. Sorry for delay.

#12

mark_anthony - October 7, 2008 - 14:14

Sorry for not checking back, but I will try my best:
So I created a "Call-out box" CCK Block in the page type of content. When that was all set up and you look under the Manage fields tab there is a tabled list:
Label Name Type Operations

Under Name I see "field_callout". Then going to "Rep[lacement]Tags" under "Site Configuration" in the Admin navigation, I wrote my SiteWide (rep) Tag as:
Tag: CALLOUT
Replacement: {BLOCK:cck_blocks:field_callout}

Soooo in the page where I want a Callout box, in the Body: I put $CALLOUT$

How is that?

#13

wildmtsky - October 8, 2008 - 01:18

YES! Thank you! Apparently, I must need to go back to grammar school to learn my capital letters... LOL! Thank you so much! You rock.

#14

wildmtsky - October 8, 2008 - 01:18
Status:active» closed

Closed. Awesome.

#15

wildmtsky - October 8, 2008 - 01:43
Status:closed» active

Sorry not closed! Now I can't apply css. I have this tag within a view, would that cause problems?

#16

wildmtsky - October 8, 2008 - 01:53

Here's something I found out that may only be my issue but when I try to add div information to the replacement text area, save, and then come back later I have this instead:

<div class=\"facts\">{BLOCK:cck_blocks:field_facts}</div>

Note: I didn't add the "\" or "/". Hmmmmm... Thoughts? Does anyone else have this problem?

#17

chasz - October 8, 2008 - 02:55

1. you cant format a block since its already formatted

2. replacement tags dont work in views.module

#18

wildmtsky - October 8, 2008 - 16:54

How do you make it so that the block has different styling then? I wish that video was still up that I referenced earlier - it showed in the label some div referencing.

So, if I understand you correctly, my replacement tags should not show up at all in my views or panel pages but they do!

The only thing that is not working is how to apply the css to it.

#19

chasz - October 8, 2008 - 17:05

1. you can align blocks left or right with a containter div, but the formatting is done by the block on top so u need to find the css for the block and make everything transparent

2. tags work in normal drupal views and not in the views2.module

someone will correct me if am wrong ;)

#20

renee - October 21, 2008 - 01:07

Could you post the documentation here on drupal.org? That way it'll always be here when needed!

#21

renee - November 5, 2008 - 15:34

BTW, chasz, what do you mean it won't work with views2? That a views block won't embed? ('Cause that's what I need... and it's not working). I can use the block view embed module instead, I guess, but reptags should rule the world. It would be nice to have everything in one filter :)

#22

Summit - December 9, 2008 - 08:43

tags work in normal drupal views and not in the views2.module
==> What do you mean by this? views2 is on D6, and views1 is on D5. This is a D5 issue, right?

Subscribing, wanting views/panels support reptags title/body
greetings, Martijn

 
 

Drupal is a registered trademark of Dries Buytaert.