This topic is locked
[SOLVED]

 HEADER AND FOOTER DIFERENT FOR EVER PAGE

1/1/2010 3:37:41 PM
PHPRunner General questions
A
Aleix author

Hi;
I use PHPRunner 5.1 Build 2503.
The project has multiple headers for specific pages which I use to call header1, header2, header3 etc.
I load the diferent headers in the output\include directory
In the Visual Editor, in code mode, I change {$header} by {$header2} in the proper page but then it does not load any header. It does not work
Where can I change the code in order that the PHPRunner get the new header.
Thanks in advance
Aleix

L
lewisekrantz 1/1/2010

One way is to go into Visual Editor - Header Page - HTML mode
Then do if-then type of code to show the header that you want based on the page that is loaded or based on the user or

whatever criteria you want
That way you only have one page to maintain that changes the header depending on your criteria

A
Aleix author 1/1/2010

Hi Lewisekrantz;
Thanks for the direct way but I prefer, if it is posible, it have the code in a file, in the same way that "normal" header. It is more easy to maintain and do new changes.
Do you Know where is the code, that load the "header" page? (I read that it was possible in the older versions, like 4.1 )
And if it is changed it load the new file "header2"
Many Thanks for your help
Aleix

A
Aleix author 1/5/2010

I use PHPRunner 5.1 Build 2503.
The project has multiple headers for specific pages which I use to call header1, header2, header3 etc.
I load the diferent headers in the output\include directory
In the Visual Editor, in code mode, I change {$header} by {$header2} in the proper page but then it does not load any header. It does not work
Where can I change the code in order that the PHPRunner get the new header
[
Many Thanks
Aleix

[/quote]

J
Jane 1/7/2010

Aleix,
{$header} by {$header2} won't work.

I recommend you to use custom event (Insert PHP code snippet option on the Visual editor tab) for this purpose.

A
Aleix author 1/8/2010

Thanks Jane and thanks Lewisekrantz
We will do in that way.
Aleix