Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2011-05-22 14:55:51
- rawe
- New Member
- Registered: 2011-05-22
- Posts: 2
How to select specific links using <txp:linklist> ?
Hi there,
I’m wondering if there is a way to produce a link list where you can specify which links you would like to be displayed?
I have a download list where I can use the ID attribute of the <txp:file_download_list /> tag (ie. id=“1,3,4”) to grab the files I want to display, setting the ID using a custom field. I was hoping to do the same using the <txp:linklist> tag, but there isnt an ID attribute for this.
Is there another way I can do this? or maybe a plugin that would be useful to do this? I’ve scoured the plugin site, but haven’t had much luck.
Really appreciate any help!
Thanks,
Rich
Offline
Re: How to select specific links using <txp:linklist> ?
hi Rich
linklist does not have a per id attribute. Why don’t you organise your links in categories and then call those.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2011-05-22 15:59:26
- rawe
- New Member
- Registered: 2011-05-22
- Posts: 2
Re: How to select specific links using <txp:linklist> ?
Thanks for the quick response.
The list is likely to be different for each article; using the category approach it will display all links within that category, where I may only want certain links. I would have to have my client set up a new link category for each post which isnt ideal and will potentially cause link duplication since only one category can be assigned to a link. I’m wondering if there is a plugin where you can select links by Id per article.
Definately a solution I would use if I cant find another way – thank you for the suggestion.
Rich
Offline
#4 2011-05-22 18:30:44
- ax
- Plugin Author
- From: Germany
- Registered: 2009-08-19
- Posts: 165
Re: How to select specific links using <txp:linklist> ?
wet_link may do it. For example you can write:
<txp:wet_link linkid="68" />
Offline