Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-02-19 09:39:13

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Multi-column links list?

I really wanted two make four columns of links on a page (sorted alphabetically) and when the client removes a link from the list they shuffle up. Here is what I would have done but the offset attribute isn’t supported on link lists.

<ul class="link-col">
<txp:linklist form="Links" limit="5" sort="linksort asc" /> 
</ul>
<ul class="link-col">
<txp:linklist form="Links" limit="5" sort="linksort asc" offset="5" /> 
</ul>
<ul class="link-col">
<txp:linklist form="Links" limit="5" sort="linksort asc" offset="5" /> 
</ul>
<ul class="link-col">
<txp:linklist form="Links" limit="5" sort="linksort asc" offset="5" /> 
</ul>

Is there a work around?

Last edited by FireFusion (2007-02-19 16:12:17)

Offline

#2 2007-02-19 20:57:42

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: Multi-column links list?

If my memory serves me I used to be able to get away with something like limit=“5,10” and limit=“10,15” because the value was passed directly to mysql with some tags. I’ve never tried it with linklist.

MIght be worth a moment to try. (after looking at the code it looks like the use of intval() may spoil the fun there).

Last edited by rsilletti (2007-02-19 21:02:38)

Offline

#3 2017-03-22 20:40:29

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: Multi-column links list?


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#4 2017-03-22 21:00:23

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,616
Website

Re: Multi-column links list?

You might also like to try using the CSS3 multicolumn feature (further tips). Browser support is now quite good.


TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB