Adding Custom Header and Footer

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
dweiss
Posts: 41
Joined: Mon Feb 27, 2006 1:42 am
Location: Washington, DC
Contact:

Adding Custom Header and Footer

Post by dweiss »

I would like to have phpMyFAQ displayed to users in a way that the FAQ will be embedded between the regular header and footer that I use for the rest of the web site. I currently use a simple server side include system with .shtml files, so I was hoping there might be a way to just insert the FAQ index.php file into a page of my code as an include, but that is not working, at least not the ways I know how to do this within my limited coding ability. I also tried to use an iframe code, but that failed as well (it brought up the FAQ page, but without my header and footer.

Can someone offer me guidance as to how I can accomplish what I am trying to do?

FYI: I am currently using the Spacelab template. Unfortunately, I do not have the PHP expertise to know how to edit the template files. However, if there is a way to edit those files using Dreamweaver, I do have access to that, if someone could offer the appropriate advice on how to proceed with such a strategy.

Thanks very much,

-Danny.
Thorsten
Posts: 15749
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Adding Custom Header and Footer

Post by Thorsten »

Hi,

you can edit the index.tpl files, it's just HTML with some template variables.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
dweiss
Posts: 41
Joined: Mon Feb 27, 2006 1:42 am
Location: Washington, DC
Contact:

Re: Adding Custom Header and Footer

Post by dweiss »

Thorsten wrote: you can edit the index.tpl files, it's just HTML with some template variables.
bye
Thorsten
I can give that a try, but I have a few preliminary questions:

1. Is there some documentation that I can reference so that I will know what variable names represent what display elements? For example, I know that the name of my site in the upper left hand corner of the FAQ home page is tied to information in the database, but I do not know what variables in the template file correspond to that information. Likewise, I know that the URL referenced by the link to the FAQ Name in the upper left hand corner is obtained from the database but, again, I do not know what variable names I would need to deal with to make changes in the display or location of that information.

2. Is there anyway that you know of to display and edit the template files in a WYSIWYG editor of some sort? If so, is there a particular editor you can suggest for this purpose? I have Dreamweaver CS4, but I have yet to find a way to get it to display the template files as they might appear when the end result is viewed by the site user. Do I need a different editor, or am I just not approaching this correctly?

Thanks for the help,

-Danny.
Post Reply