Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How would I pull an include from the <%header%>?

Quote Reply
How would I pull an include from the <%header%>?
Hi,

I'm trying to call an include from my header. I have a unique include for each category at my site and this would be the easiest way to integrate into my design.

So something like this...

<%include /home/myinclude.txt%>

being pulled from the <%header%> tag.

Maybe I need a global?
thanks,
marc
Quote Reply
Re: [hcom] How would I pull an include from the <%header%>? In reply to
You can use dynamic includes (eg. <%include $variable%>) if the variable contains a path - it must be just a filename. If you put the files inside the template directory, then this shouldn't be a problem. If you need to use a path, then you'll have to write a global to do it.

Adrian