Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Include an page.html depending on fatherid

Quote Reply
Include an page.html depending on fatherid
Hi All,

Andy just solved my problem (273156) And I have a new question for the link.html template.

I want to include an page (inside link.html) page1.html when fatherid = 1000
or page2.html when fatherid=2000
or page3.html when fatherid=3000 etc.

It all must be included in the link.html template

must be in if, elseif, loop statements???

Thanks,
Ron
Quote Reply
Re: [sahertianr] Include an page.html depending on fatherid In reply to
How many different pages are you trying to include?

Are you trying to include pages if the ID is in the 3xxx range?


PUGDOG´┐Ż Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Include an page.html depending on fatherid In reply to
just 3 pages.... for 3 different maincats (fathers)
and yes also the 3000 father...

thanks,
ron
Quote Reply
Re: [sahertianr] Include an page.html depending on fatherid In reply to
Something like this?

<%if FatherID eq '1000'%><%include page1.html%>
<%elsif FatherID eq '2000'%><%include page2.html%>
<%elsif FatherID eq '3000'%><%include page3.html%><%endif%>
Quote Reply
Re: [afinlr] Include an page.html depending on fatherid In reply to
Yes, but fatherid cannot be parsed within link.html

thanks,
ron