Gossamer Forum
Home : Products : Links 2.0 : Discussions :

templates

Quote Reply
templates
Hi everyone,

just a quick question :

is it possible to use pages in php (like add.php) as templates ?

The thing is that I'm putting the code <?include"menu.inc.php"?> in my pages... but if it's .html the code doesn't work.. I need to have .php pages

How can I fix this ?

Thanks for your help !! Smile

Nicolas
Quote Reply
Re: [nhorky] templates In reply to
I have found out that on the file site_html_templates we cound change the templates called to .php ... and then changed all my pages to php...

still my menu doesn't want to show up ... I've tried with add.cgi ... for the add page.. but no result ! :-/

thanks for your help !

nicolas
Quote Reply
Re: [nhorky] templates In reply to
Look in build options in the links.cfg file for this:

# The name of an index file.
$build_index = "index.html";
# The extension to use for non index files:
$build_extension = ".html";

Did you change these to .php?


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] templates In reply to
hi !

first... thanks a lot for your help

in fact I tried to change these two lines in links.cfg... and it worked perfectly...

the only thing is that my menu still doesn't want to show up...
(re my code <?include"http://www.yoop-e.com/menu.inc.php";?>

so I was wondering if the fact that for example the add page was displayed thanks to a cgi file... well I was wondering if cgi and php could work together...

anyway.. would you have any idea why my menu doesn't want to show up?
(u can see an example on http://www.yoop-e.com/annuaire/pages/add.cgi where the menu on the left should be there... see the difference with the home page)

Thanks again for your help ! Wink

Nicolas
Quote Reply
Re: [nhorky] templates In reply to
I am not familiar with PHP, but there folks here who are, maybe they can help... Unsure


Leonard
aka PerlFlunkie