Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Specifing the display order of related links (using asy_wondertag )
<txp:if_custom_field name="Aanverwante_links_volgorde">
<txp:asy_wondertag>
<txp:article_custom limit=99999 form="MTS_article_list" sort="<txp:custom_field name='Aanverwante_links_volgorde' /> asc" category="embrace" />
</txp:asy_wondertag>
</txp:if_custom_field>
Hi have been struggling to specify the display order of a series of article links.
I decided to create a custom field called “Aanverwante_links_volgorde”. (related_links_order)
The problems
1. I get an error cos of the parsing conflicts with custom field name and the standard “asc” sort attribute value.
2. When i use the <txp:if_custom_field>
conditional tag it output nothing.
I have got round the whole issue by using the keywords field, but it’s not very logical or semantic. I’d rather use a specifically designed option as it make a little more sense for the other users
EDIT (still using 4.0.6 cos of the MLP difficulties with the newer versions)
Last edited by Timid&friendly (2009-02-07 16:50:17)
I think, therefore I AM, … … er … I think :-?
Offline
#2 2009-02-07 17:03:52
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Specifing the display order of related links (using asy_wondertag )
sort="<txp:custom_field name='Aanverwante_links_volgorde' /> asc"
You need to replace the single quotes with double quotes.
(still using 4.0.6 cos of the MLP difficulties with the newer versions)
Offline