Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-11-07 11:30:22
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
linklist page
I want to do linklist page like this:
Link category1 name
link title
link description
link title
link description
Link category2 name
link title
link description
link title
link description
my page is:
<txp:linklist break=“li” form=“Links” sort=“linksort asc” wraptag=“ul” />
but I can’t to do correct “Links” form :(
can anybody help me?
Offline
Re: linklist page
Links only have 1 category.
Offline
#3 2006-11-07 11:48:47
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: linklist page
ruud wrote:
Links only have 1 category.
how so??? I can create as many link categories as I want to on admin’s category page…
Offline
Re: linklist page
ah… now I see what you mean (category1/2 made me think of the two categories you can set for articles, while you can only choose 1 category for links, hence the confusion on my end).
Have you tried using if_different using a Links form like this:
<txp:if_different><txp:link_category /></txp:if_different>
<txp:link_name />
<txp:link_description />
and remember to sort by category first, then linksort:
<txp:linklist sort="category ASC, linksort ASC" break="li" form="Links" wraptag="ul" />
Last edited by ruud (2006-11-07 11:59:22)
Offline
#5 2006-11-07 13:15:47
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: linklist page
ruud wrote:
Have you tried using if_different using a Links form like this:
not excactly what I want to…look it yourself http://www.tartulinnuklubi.pri.ee/textpattern/lingid/ …it leaves empty space above the links
I dont want category names to be listed (I want them to be between <h3> tags ) but links.
sorry my english
Last edited by Gallex (2006-11-07 13:48:42)
Offline
#6 2006-11-07 15:50:51
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Offline
Re: linklist page
remove the wraptag from ruuds code example. that should kill the spaces.
A hole turned upside down is a dome, when there’s also gravity.
Offline
#8 2006-11-07 17:44:07
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: linklist page
I dont want category names to be listed (I want them to be between
<h3>
tags ) but links.
That’s what if_different will do. Try it.
Offline
#9 2006-11-08 10:41:10
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Offline
Re: linklist page
That other page you referred to uses something like this:
<txp:if_different></p><p><strong><txp:link_category /></strong></p><p></txp:if_different>
<txp:link_name />
<txp:link_description /><br />
<txp:linklist sort="category ASC, linksort ASC" break="" form="Links" wraptag="p" />
Offline
#11 2006-11-08 11:37:52
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,308
Re: linklist page
voh, excactly what I wanted! …only I had to remove “name” at the end of <txp:link_name />
otherwise it didn’t link.
but, is it possible:
1. to leave article title to the top.
this doesn’t work:
<txp:permlink><txp:title /></txp:permlink>
<txp:if_different></p><p><strong><txp:link_category /></strong></p><p></txp:if_different>
<txp:link />
<txp:link_description /><br />
2. to sort by category title not by name. right now it doesn’ t display some estonian characters
<txp:linklist sort="category ASC, linksort ASC" break="li" form="Links" wraptag="ul" />
Last edited by Gallex (2006-11-08 14:26:37)
Offline
#12 2006-11-09 00:44:07
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: linklist page
- Link tags only work from a link form, called by linklist.
- Sorting doesn’t affect title display. If titles are not displaying correctly, something else is wrong.
Offline