Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Creating link to different article with title by id
I would like to conveniently create a permlink by id with the title of the link within article content. I was hoping that I could do this:
<txp:permlink id=“123”><txp:title/></txp:permlink>but the link title becomes the link of the containing article, not the permlink article.
I suppose the alternative would be:
<txp:article_custom id=“123”><txp:permlink><txp:title/></txp:permlink></txp:article_custom>but that seems rather verbose. Seems like the former should work!
Offline
Re: Creating link to different article with title by id
My solution became to create an article form called ‘url’, containing:
<txp:permlink><txp:title/></txp:permlink>Then when I want the article link I can use
<txp:article_custom id=“123” form=“url”/>Still seems like there should be a more straightforward way!
Offline
Re: Creating link to different article with title by id
Try wet_link, eventually complemented by wet_quicklink.
Offline