Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Let say, I put the click here in the Contemplate,
and the Contemplate output the click here
the reason I ask because I have links in CCK text type.
Let me know if there a way to do it.
thanks all.
John,
Comments
Comment #1
johnking CreditAttribution: johnking commentedLet say, I put the
<go href="RAWLINKS" title="rawlinks">click here </go>
in the Contemplate,
and the Contemplate output the
<a href="Go/Prettylinks" > click here <a/>
the reason I ask because I have links in CCK text type.
Let me know if there a way to do it.
thanks all.
John,
Comment #2
hass CreditAttribution: hass commentedIf you are able to setup a filter for CCK, than it may work. Otherwise you need to write a patch.
Comment #3
lemmers CreditAttribution: lemmers commentedI am also trying to get gotwo to work with contemplate.
I have a url stored in a CCK text field.
In contemplates, I'm trying to display the url using this code:
If I use "a" tags, the link works fine. With the above code, if I view the page source I can see the go tags, but the link appears in plain text.
I've tried every combination of input formats I could think of. I added the go tag to the default import format list of allowed tags and I also hacked the cck module and changed line 1755 to the following to allow for the go tag, thinking this could be the problem
Nothing I do seems to work. Love this module, but really, really, really need this functionality.
Am I missing something here. Is there a way to get this to work?
Comment #4
lemmers CreditAttribution: lemmers commentedI thought I had this working using check_markup in contemplate, but it's still not working correctly. I'll continue to try different things. If anyone understands what I'm trying to do and can provide assistance I'd appreciate it.
Comment #5
hass CreditAttribution: hass commentedI'm not using contemplate myself, but it sounds like the filters may run earlier and you only get the filtered variables if you use them in the templates. In this case you are out of luck. If the contemplate is not filtered the go link cannot replaced. Maybe a limitation of contemplate... But i'm only guessing.
Comment #6
lemmers CreditAttribution: lemmers commentedThanks for your response. I think I got it working correctly. One problem I ran into is that the page had to be refreshed for the redirect to show. I think upgrading to the latest dev version solved that.
This is the code I'm using in contemplates and it seems to be working. (I'm sure there's a better way as I really don't know what I'm doing). The url is stored in a cck textfield field_linktext.
Comment #7
hass CreditAttribution: hass commentedThis is the bug #936468: Go link only shows after clearing cache or changing input filter. I may publish an updated release soon.