Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-06-24 22:36:48

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

3 Column Blogroll

How do I make a blogroll using textpattern’s links, but separate them into 2 or 3 columns?
I tried to put them in tables and it came out really ugly. column 2 did not align with column 1.

this would sit in the footer like on this site

Last edited by mrtunes (2008-06-24 22:38:53)

Offline

#2 2008-06-24 23:31:14

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,320

Re: 3 Column Blogroll

You can sort them in catgories (left, middle, right) and then output them separately for each category with <txp:linklist category="left" form="Links" sort="linksort" wraptag="p" />. Linksort is defined by what you enter in the field “Sort Value” on the link tab. (Enter numeric values here, makes it easier to sort links.)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#3 2008-06-25 00:16:07

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: 3 Column Blogroll

hi uli thanks for responding. i’m still sort of lost though. my links have multiple categories already, and i have given them specific category names:

<txp:linklist category="Soundware" form="Links" label="Soundware Companies" sort="linksort asc" />

here they are sitting on one page before i tuck them into the main blog page. it’s basically the code as written above with different categories and <br/> tags spacing them apart.

Offline

#4 2008-06-25 00:19:20

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: 3 Column Blogroll

offset-attribute is what you want.

<txp:linklist limit="10" wraptag="div" class="left" />
<txp:linklist limit="10" wraptag="div" class="center" offset="10" />
<txp:linklist limit="10" wraptag="div" class="right" offset="20" />

Edit: by looking your site, I can see that it misses <table> also, the code is quite invalid altogether.

Possibly you should also make those columns with divs instead of tables, ‘cause that isn’t table kind data…

Last edited by Gocom (2008-06-25 00:25:16)

Offline

#5 2008-06-25 00:30:37

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: 3 Column Blogroll

Gocom wrote:

offset-attribute is what you want.
Edit: by looking your site, I can see that it misses <table> also, the code is quite invalid altogether.
Possibly you should also make those columns with divs instead of tables, ‘cause that isn’t table kind data…

hey thanks for that tip. yeah i know the code isn’t valid, one reason is cause i’ve been mucking around with it. just cleaned up all those TDs and TRs cause i’m not using tables any more. typically not good to work on a live site but it’s pretty quiet over on that links page.

so i reckon that if i use class=left, class=center etc. then i have to make declarations in the stylesheet that tells it what the widths are going to be?

Offline

#6 2008-06-25 00:31:22

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,320

Re: 3 Column Blogroll

offset-attribute is what you want.

Yes, I’d also want! ;))


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#7 2008-06-25 00:37:26

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,320

Re: 3 Column Blogroll

Ah, found what Gocom, you and me want: jnm_linklist


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#8 2008-06-25 00:39:06

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: 3 Column Blogroll

uli wrote:

Ah, found what Gocom, you and me want: jnm_linklist

so i need this to get his suggestion working? and do i also have to mess with css?

Offline

#9 2008-06-25 00:48:01

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,320

Re: 3 Column Blogroll

mrtunes wrote:

so i need this to get his suggestion working?

Re offset: yes!

and do i also have to mess with css?

Tables seemed to be no warranty to get them lined up neatly, neither, did they? Worth the try/switch ;)

Last edited by uli (2008-06-25 00:49:57)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#10 2008-06-25 03:33:10

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: 3 Column Blogroll

uli wrote:

Tables seemed to be no warranty to get them lined up neatly, neither, did they? Worth the try/switch ;)

no – you’re right, i was just trying to be clear about what to do with that plugin.

so i tinkered around, and i found that by placing a few sets of links around one div, and the other set around another div, then in the CSS i made one float left, and the other float right, i was able to get it. but i’m not sure how a third column would work in that scenario. maybe center column has no float? also the top two columns are aligned but everything underneath it has really no layout. i guess that’s what tables was supposed to offer me. well thanks for your help so far both of yous. i seem to be getting very close.

Offline

#11 2008-06-25 05:31:18

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: 3 Column Blogroll

uli wrote:

Yes, I’d also want! ;))

Ah, found what Gocom, you and me want: jnm_linklist

Re offset: yes!

What are you meaning? Pardon me uli, but linklist does already have offset attribute, if you haven’t noticed. All 4.0.6 core list tags have offset-attribute, so we seriously won’t need plugin.

Last edited by Gocom (2008-06-25 05:58:34)

Offline

#12 2008-06-25 08:51:36

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,320

Re: 3 Column Blogroll

Never noticed (and never tried), as the wiki page, still doesn’t list offset. But you seem to be completely right, you don’t get errors with offset in the linklist tag. Striking, that you knew this :)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#13 2008-06-25 15:15:14

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: 3 Column Blogroll

You don’t need a plug-in to use Gocom’s code above. In your CSS set all the columns to float: left; and they will sit alongside each other provided you have the correct widths to fit within the width of the container otherwise the last column might drop below the others. And don’t forget to “clear” afterwards.

Last edited by thebombsite (2008-06-25 15:18:58)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#14 2008-06-25 15:15:18

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: 3 Column Blogroll

uli, only complete attribute listing is taghandlers.php itself. Textbook is incomplete and have never listed all tags with all atributes.

Offline

#15 2008-06-25 15:22:18

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: 3 Column Blogroll

Textbook is a little behind at the moment though there was talk of moving to a different wiki application so that may be the reason for the delay in updating.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB