Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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,306
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
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
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
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,306
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,306
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
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,306
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
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
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,306
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