Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-09-03 10:27:04

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Form attribute in recent/related articles tag

A form attribute for the recent and related articles tag would be useful. This would allow something other that the article title to be listed, for example sometimes the article title might be to long to be used in a navigation list and a custom field could be used in a form to replace it.

Cheers,
Lee

Offline

#2 2006-09-03 15:28:29

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: Form attribute in recent/related articles tag

this could be done already. what you need is

<code><txp:article_custom section=“Articles” form=“yourform” category=“Articles” sortdir=“desc” limit=“10”/></code>

(change category/section combination to your liking)

and a form called “yourform” looking like this

<code><txp:permlink><txp:custom_field name=“custom1” /></txp:permlink> </code>


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB