Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#25 2007-04-04 23:02:38
- unipus
- Member
- Registered: 2004-03-10
- Posts: 18
Re: Linking to common custom tag
<li>
<a href=“http://www.maydayfilms.com/2007/movies/56/yellow-hammer” title=“Yellow Hammer” class=“movietitle”>Yellow Hammer</a> byFlavor Country </txp:permlink>
</li>
Offline
#26 2007-04-05 16:03:21
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Linking to common custom tag
Damn, am I blind! Of course that won’t work because <txp:asy_wondertag>
has to be wrapped around one single tag or around the opening and closing tag of a container tag. Because the closing </txp:permlink>
is outside the plugin’s tag it doesn’t work. Moving it inside won’t work either because then you have two different tags inside…
And right now a solution comes to my mind that is so incredibly simple that I wonder if it would really work (and if it does, why the * didn’t I think of it before…). What happens if you change your form ‘creator_name’ to this:
<txp:permlink><txp:title /></txp:permlink>
and form ‘link_nav_movie’ to this:
<li>
<a href="<txp:permlink />" title="<txp:title />" class="movietitle"><txp:title /></a> by
<txp:asy_wondertag>
<txp:article_custom id="<txp:custom_field name="CreatorArticleID" />" form="creator_name" />
</txp:asy_wondertag>
</li>
Offline
#27 2007-04-05 19:57:22
- unipus
- Member
- Registered: 2004-03-10
- Posts: 18
Re: Linking to common custom tag
What happens is that it totally works. Wow, you’re right, I should have thought of that too. Oh well! Thanks so much!
Offline
#28 2007-04-05 20:00:07
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Linking to common custom tag
I must say that I’m tempted to delete all posts between your first question and my last answer ;) I honestly don’t know why I didn’t think of that sooner! But I’m glad we worked it out eventually :)
Offline