Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-03-14 19:29:09

mericson
Member
Registered: 2004-05-24
Posts: 137
Website

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

#2 2010-03-14 19:59:08

mericson
Member
Registered: 2004-05-24
Posts: 137
Website

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

#3 2010-03-15 06:29:08

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,376
Website GitHub Mastodon

Re: Creating link to different article with title by id

Try wet_link, eventually complemented by wet_quicklink.

Offline

Board footer

Powered by FluxBB