Gossamer Forum
Home : Products : Gossamer Links : Discussions :

<%category%> tag?!

Quote Reply
<%category%> tag?!
Hello,

I'm having a problem trying to edit the <%category%> tag. I'm not sure where to start looking. I have a couple of questions:

1. How can I edit the html code that the <%category%> tag is generating?

2. The reason is, I only want one column of categories running vertical down the home.html page, is this possible?

3. But, I want two columns running vertical down the rest of the site, is this possible?

4. Also, how can I make it so the catergories running vertical are not alphabetized?

Thanks!

Eddie
Quote Reply
Re: [eddie123] <%category%> tag?! In reply to
1) Edit subcategory.html in your templates folder...

2) Yeah, just use <%loop category_loop%> i.e;

<%loop category_loop%>
<%include subcategory.html%>
<%endloop%>

That should do what you want (just replace the <%category%> tag with it)

3) 2 columns of categories, or links?

4) Edit the sort order for the building process (Setup > Build Options)....not definate on the exact name of it, but instead of organising by Title, you can organise it by whatever field you want...


Hope that helps Smile

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] <%category%> tag?! In reply to
Hey Andy,

First, thanks a lot for posting back! I think I know what you're talking about and I think it'll work now! Smile

Second, sorry for the double post. Unsure

Third, I'm looking to have on home.html one column of links I guess. I would like it to look very similiar to http://www.cgi-resources.com. They have one column of links I guess. But, on the other pages, I would like to have 2 columns setup. So it would like like this: http://cgi-resources.com/...ms_and_Scripts/Perl/

Would I have to setup another template called subcategories2.html and run edit tags like:

<%loop category_loop%>
<%include subcategory2.html%>
<%endloop%>

Lastly, thanks again for your help!

Eddie
Quote Reply
Re: [eddie123] <%category%> tag?! In reply to
Mmm...its just a case of using the normal <%category%> tag for 2 columns of categories, and then the <%loop category_loop%> one in home.html to get a single line of links Tongue

Hope that helps

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] <%category%> tag?! In reply to
How would I edit the tables in the 2 columns that the <%catorgory%> tag spits out?

eddie
Quote Reply
Re: [eddie123] <%category%> tag?! In reply to
If you are wanting to use 2 columns, but not in the default table that Links SQL makes, then search this forum for '2 column links'. This code is for links, but the principle applies to the categories too...

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Dec 11, 2002, 10:29 AM
Quote Reply
Re: [Andy] <%category%> tag?! In reply to
Thanx Andy Smile