Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Different Category with Different link.html

Quote Reply
Different Category with Different link.html
Hello all,

Is it possible to make different category with different link.html file ?

Please help.
Quote Reply
Re: [reenee] Different Category with Different link.html In reply to
Yup, sure is. When you define the category you set up categories you can define what category template you use. It should be possible to just do just;

<%foreach link_loop%>
<%include categorylink.html%>
<%end foreach%>

in the appropriate category HTML, or you could take the approach of editing the default link.html to have something like;

<%if Category eq 'category name'%>
show appropriate link code here
<%elsif Category eq 'another category name'%>
Do this
<%else%>
Do this - to catch categories not listed above in the other if/elsif's
<%endif%>

I'm hoping this will do what you are asking. It works fine on other Links SQL copies I have setup/customised Tongue

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: [AndyNewby] Different Category with Different link.html In reply to
Hi Andy,

Thanks for your help, i did try the code:

<%foreach link_loop%>
<%include categorylink.html%>
<%end foreach%>

but still no luck, i got an error Unknown tag 'foreach link_loop' and i'm using Link SQL 2.1.0.

Please help.
Quote Reply
Re: [reenee] Different Category with Different link.html In reply to
Sorry, I believe it is actually loop_link (I was rushing, sorry).

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: [AndyNewby] Different Category with Different link.html In reply to
Thanks Andy,

But still no luck, i still receive an error message :

Unknown Tag: 'foreach loop_link' and Unknown Tag: 'end foreach' .

Please help.
Quote Reply
Re: [reenee] Different Category with Different link.html In reply to
I don't think theres such a thing as a foreach tag.

Its a <%loop ...%> <%endloop%> tag you need.
Quote Reply
Re: [RedRum] Different Category with Different link.html In reply to
Whoops. Paul is correct, its a 'loop' rather than 'foreach'. Sorry about the confusion, I've obviously been up too long (up since 4am, and its now 9pm Frown).

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: [AndyNewby] Different Category with Different link.html In reply to
Errr Sorry,

I dont understand, i did try but the page shown blank, is it correct ? :

<%loop link_loop%>
<%include link_hotel.html%>
<%endloop%>

Please help.
Quote Reply
Re: [reenee] Different Category with Different link.html In reply to
Yes, Its Work, Just because of 's' at links_loop:

<%loop links_loop%>
<%include link_hotel.html%>
<%endloop%>

Thanks Alex & Paul.