Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-08-28 20:57:39
- sisushka
- Member
- Registered: 2007-07-30
- Posts: 14
txp:linklist? > how to achieve the same effect as for txp:article's...
Hello Forum,
I need a helping hand. How to achieve the same effect as for txp:article’s listform and form in case of <txp:linklist />
?
I need my links (arranged in few categories) to behave similarly as if I used the article’s tag listform. I basically want to write out the names of categories on the main section’s page and by clicking on a category, the links included will show up.
I thought this might be possible via <txp: linklist />
tag, but I’m not sure. Anyway, any other ideas are welcome and highly appreciated, because I’m in a hurry and this is the last thing I’m not able to figure out :(
Thankies in advance!
Offline
Re: txp:linklist? > how to achieve the same effect as for txp:article's...
Simple:
<txp:category_list type="link" />
And:
<txp:if_category name="blogs">
<txp:linklist category="blogs" wraptag="ol" break="li" />
</txp:if_category>
<txp:if_category name="shops">
<txp:linklist category="shops" wraptag="ol" break="li" />
</txp:if_category>
See more at:
Cheers!
Last edited by Gocom (2007-08-28 21:50:43)
Offline
#3 2007-08-28 21:50:31
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: txp:linklist? > how to achieve the same effect as for txp:article's...
sisushka wrote:
I basically want to write out the names of categories on the main section’s page and by clicking on a category, the links included will show up.
<txp:category_list type="link" />
You can use <txp:linklist form="yourlinksform" />
and form ‘yourlinksform’ to customize the display.
Offline
#4 2007-08-29 16:11:58
- sisushka
- Member
- Registered: 2007-07-30
- Posts: 14
Re: txp:linklist? > how to achieve the same effect as for txp:article's...
Jukka & Els,
thank you for your help :) but I probably haven’t figured out how to use it :(
Please, have a look at http://www.retriever-sport.sk/odkazy . ‘Chovatelske stanice’ and ‘Ostatne’ are the link categories and are written out correctly, but the links don’t work.
I wanted to add a form or a listform to my <txp:category_list type="link" section="odkazy" />
, but such tags are not supported.
I’m helpless and puzzled. I need those links to work :(
Last edited by sisushka (2007-08-29 16:13:12)
Offline
#5 2007-08-29 16:29:10
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: txp:linklist? > how to achieve the same effect as for txp:article's...
You also need some tags to display the links on the page template for section ‘Odkazy’, something like example 2 here.
It would be something like
<txp:if_category name="ostatne">
<txp:linklist form="Links" category="ostatne" wraptag="ol" break="li" />
</txp:if_category>
<txp:if_category name="chovatelske-stanice">
<txp:linklist form="Links" category="chovatelske-stanice" wraptag="ol" break="li" />
</txp:if_category>
You can adapt the form ‘Links’ (it’s in the default install) to suit your needs.
BTW very nice site :)
Offline