This topic is locked

header and footer

1/30/2008 12:30:55 PM
PHPRunner General questions
kujox author

How can I change the default header and footer that is generated when I build a page?

M
mmponline 1/30/2008

The easiest way for me is to open the header.php or footer. php in a htm editor and make my changes. - or save your own design over the header and footer.
It even works if you create header.htm and footer.htm files at first as some editors don't view php files correctly. I then just save as... the files with .php exentions after I'm done. Next time I want to change it, I change my .htm and then save as... with .php extention again.
The other option would obviously be to change the code in visual editor to say {include_if_exists file="include/yourownfile.php"} Eg. header1.php - but then you have to remember to copy it maually to the server.
I rather stick to the default header and footer except if I want different headers or footers in the same project, as I forget easily what I've done when working on a project later on.
Lastly: If you don't need a header or footer, just delete these .php files in the include folder.

A
alang 1/30/2008

If your project uses a business template, you can specify a separate header and footer file under the business template ie
header.php and footer.php stored in ..
typically C:\Program Files\PHPRunner4.1\templates\business\{your template name}\source\include\

kujox author 1/31/2008

If your project uses a business template, you can specify a separate header and footer file under the business template ie

header.php and footer.php stored in ..
typically C:\Program Files\PHPRunner4.1\templates\business\{your template name}\source\include\


I think the problem is I have somehow attached a business template as my default and now every project I load in has the templates header and footer, which overwrite mine everytime I build them, I have changed it in the templates but would like to specify a standard default header and footer
maybe the question should have been how do I detatch a template from my project

kujox author 2/1/2008

See http://www.asprunner.com/forums/index.php?...templates\


Thanks Alan, that's what I wanted to do as when I upgrade projects to v4.1 they all have the classified template which gives it that header and footer
Problem solved

L
luckyroz 6/27/2008

How can I change the default header and footer that is generated when I build a page?



'
Well 'Kujox', I don't really know.. ya see I'm a little caught up in small things too...No time for something so BIG. (smile) But I'm looking into it. OK? OK! I thought you'd se it that way. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=30605&image=1&table=forumreplies' class='bbc_emoticon' alt=':o' />

"Lucky"