Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-07 11:30:22

Gallex
Member
Registered: 2006-10-08
Posts: 1,331

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

#2 2006-11-07 11:36:20

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: linklist page

Links only have 1 category.

Offline

#3 2006-11-07 11:48:47

Gallex
Member
Registered: 2006-10-08
Posts: 1,331

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

#4 2006-11-07 11:55:03

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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,331

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

Re: linklist page

Offline

#7 2006-11-07 16:23:18

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 727
Website Mastodon

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,331

Re: linklist page

Mary wrote:

That’s what if_different will do. Try it.

but it doesn’t :( I made exactly by ruud’s advice and here is result

my wish is to create nice linklists grouped by category (without plugin if possible). like here

Last edited by Gallex (2006-11-08 10:46:18)

Offline

#10 2006-11-08 10:56:33

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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,331

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

  1. Link tags only work from a link form, called by linklist.
  2. Sorting doesn’t affect title display. If titles are not displaying correctly, something else is wrong.

Offline

#13 2006-11-09 10:13:45

Gallex
Member
Registered: 2006-10-08
Posts: 1,331

Re: linklist page

Mary wrote:

  1. Link tags only work from a link form, called by linklist.

in other words, not possible

  1. Sorting doesn’t affect title display. If titles are not displaying correctly, something else is wrong.

but what could be? link category title “Eesti linnu – ja loodusfotograafia” but TP displays “Eesti-linnu-ja-loodusfotograafia”, link category title “Rõngastamine” TP displays “Rongastamine”. example

Offline

#14 2006-11-09 11:36:49

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: linklist page

use <txp:link_category title="1" /> instead of <txp:link_category />

Offline

#15 2006-11-09 13:29:09

Gallex
Member
Registered: 2006-10-08
Posts: 1,331

Re: linklist page

ruud wrote:

use <txp:link_category title="1" /> instead of <txp:link_category />

bingo ruud! :) thanks.

and last question (hopefully :) ): right now category names are sorted in alphabetical order, but how to sort them by date/time added?

Offline

Board footer

Powered by FluxBB