Gossamer Forum
Home : Products : Links 2.0 : Customization :

Header/Footer, <%include banner.txt%>

Quote Reply
Header/Footer, <%include banner.txt%>
Hallo
I tried to add this tag <%include banner.txt%> in Header/Footer space of the category, but does not work.
Can somebody tell me why ?
Best regards
Gabriel

Gabriel
Quote Reply
Re: Header/Footer, <%include banner.txt%> In reply to
Have you got the enhanced template mod installed?

Are you pointing to the correct path to banner.txt

Good Luck!

Glenn
Host Links
http://cgi-resource.co.uk/links
Quote Reply
Re: Header/Footer, <%include banner.txt%> In reply to
The template file (banner.txt) must be in your TEMPLATES folder...It cannot reside outside of the template folder.

You cannot use:

Code:

<%include /path/to/banner.txt%>


You must use the codes you are using...but, yes, you do need the Enhanced Template.pm code hack, which is located in the Resources section of this web site (LINKS => Modifications).

Regards,

Eliot Lee
Quote Reply
Re: Header/Footer, <%include banner.txt%> In reply to
I have installed the Enhanced Template.pm , but when I add this tag <%include filename.txt%> in Header or Footer space of a category nothing appear in the page in which I want a banner.
I tried to upload the filename.txt in the directory of the category and in the templates, without any luck.
Where is the error?


Gabriel
Quote Reply
Re: Header/Footer, <%include banner.txt%> In reply to
On the page where it should appear is it just blank where it should be? Or is there an error message? Or does just the tag appear?

Good Luck!

Glenn
Host Links
http://cgi-resource.co.uk/links
Quote Reply
Re: Header/Footer, <%include banner.txt%> In reply to
No messagges, no banner, just the page with the links that are in the database for the category.
The page are fine, only I have not the banner that I want

Hope it is clear...

Gabriel
Quote Reply
Re: Header/Footer, <%include banner.txt%> In reply to
And did you put the banner.txt file IN THE TEMPLATES FOLDER as I already stated?

Regards,

Eliot Lee
Quote Reply
Re: Header/Footer, <%include banner.txt%> In reply to
yes, i did it

Gabriel
Quote Reply
Re: Header/Footer, <%include banner.txt%> In reply to
hello,

i have a equal problem. but i must include ist from outside the cgi-folder. its the headnaviagtionbar and i must include it on different pages, programms in the website. how can i include pages from outside the links/cgi folder ? if i use the full path i get a double path
1: links path+ my path

and that sosent work_(

Quote Reply
Re: Header/Footer, <%include banner.txt%> In reply to
Now to have banner, I write the html code direclty in the space of header/footer of each category, BUT WHY in thise forum sombody told me about <%include bannertxt%> that does not work?
Can somebody have more lucky with this ?

Gabriel
Quote Reply
Re: Header/Footer, <%include banner.txt%> In reply to
In Reply To:
html code direclty in the space of header/footer of each category,
You do NOT enter html code directly into the header/footer field. Search this forum for headers/footers for plenty of threads that will help.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Header/Footer, <%include banner.txt%> In reply to
I already did it without any luck !!!

Gabriel
Quote Reply
Re: Header/Footer, <%include banner.txt%> In reply to
I find that hard to believe.

In the header/footer field you add the name of the file.....

header.txt (example)

Then put header.txt in the templates directory.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Header/Footer, <%include banner.txt%> In reply to
I did it. I uploaded in the templates directory, then in header footer I wrote <%include banner.txt%> BUT no banner appear in the category page.
I can see just the page, normal, no banner.
I i go to see the html, I cane see <%include banner.txt%>

Gabriel
Quote Reply
Re: Header/Footer, <%include banner.txt%> In reply to
Did I say type in <%include banner.txt%>???

NO I DID NOT.

I told you to type in the file name - I can't make it any clearer.

You DON'T use an include tag for category header and footer tags, that is the whole point of being able to do it from the admin area - ONE tag produces all the headers and footers for each category when you build the directory.

I can't be any more blunt so you will have to figure it out.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Header/Footer, <%include banner.txt%> In reply to
Right I've just tested on my installation.

What you need to do is add <%header%> into category.html

Then in the header/footer field for each category add what you want to appear.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/