Gossamer Forum
Home : Products : Gossamer Links : Discussions :

one category-column at home.html ?

Quote Reply
one category-column at home.html ?
Hi,

I do have 2 columns at my "home.html" page showing 28 categories, so 14 categories per column.
I now want to change this showing all 28 categories in one column. How do I change from 2 columns to only one column (only for the home.html-page) ?

Then I want to have this column placed at the top-left corner, not centered.


Appreciate if you could help.



Many thanks,

Erich
Quote Reply
Re: [erichcyber] one category-column at home.html ? In reply to
Hi,

Try:

Code:
<%loop category_loop%>
<%include subcategory.html%> <br />
<%endloop%>

That should do it :)

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!
Quote Reply
Re: [Andy] one category-column at home.html ? In reply to
Hi Andy,

many thanks for your quick reply !
the following is the code which I do see currently. How to alter this code correctly and where to put the code you referred or let´s say what do I need (what am I allowed ) to delete from the current code ?


------------------------------------------

<%include include_contentheader.html%>
<div id="ocwrapper" class="clear">
<div id="icwrapper" class="clear">
<%include include_leftsidebar.html%>
<div id="contentwrapper" class="shadowleft">
<%include include_contentwrapper_top.html%>
<div class="shadowtop"><div class="shadowtopleft"></div><div class="shadowtopright"></div></div>
<div class="shadowright">
<div id="content">


<div id="wrapper">
<%include include_content_top.html%>
<%set split = Links::Utils::column_split($category_loop.length, $home_category_cols)~%>
<div class="clear">
<%loop category_loop%>
<%~set splitmod = $row_num % $split%>
<%~if row_num == 1 or splitmod == 1 or split == 1%><dl><%endif%>
<%~include subcategory.html%>
<%~if row_num == $category_loop.length or splitmod == 0%></dl><%endif%>
<%~endloop%>
</div>
<%include include_content_bottom.html%>
</div>


------------------------------------------



Best regards,

Erich
Quote Reply
Re: [erichcyber] one category-column at home.html ? In reply to
Hi,

Just replace this bit:

Code:
<%loop category_loop%>
<%~set splitmod = $row_num % $split%>
<%~if row_num == 1 or splitmod == 1 or split == 1%><dl><%endif%>
<%~include subcategory.html%>
<%~if row_num == $category_loop.length or splitmod == 0%></dl><%endif%>
<%~endloop%>
That should do it :)

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!
Quote Reply
Re: [Andy] one category-column at home.html ? In reply to
Hi Andy,

thanks a lot for your great help! This works just fine!


Erich