PDA

View Full Version : Php instead of Html files?


diamondguy
07-08-2005, 06:17 PM
I have been modifying and playing with modifications of the article live system and im getting the hang of it.... however I think it would be easier for me if the files used php files instead of html files. For example im doing two includes on my defaul.html page (the RootArticleCategoriesPanel.htmll) and above it, im including my html for my topheader and left navi and inside the left navi im using the global %%GLOBAL_CategoryList%% to generate it inside my navigation. The issue is my navigation is outputed from a php include file and well you cant include a php file in the RootArticleCategoriesPanel.html because if my navigation changes, I just want to reupload the new php include file and thats it, instead of updating the html of this file all over on every page. So i guess is there a way to make it a HTML file or embed the %%GLOBAL_CategoryList%% in my php page ?

Notice the missing : navigation sections: http://www.diamondarticles.com/darticles/
but the ARTICLES section of categories displays fine, just I want to have that abilty to do those includes maybe in an easy way without copying html each time.

Compared to this:
http://www.diamondarticles.com/

Thanks

Alexander Evdakov

Jordie (Interspire Staff)
07-13-2005, 08:09 AM
If you wish to run .html files through php create a new .htaccess file in your templates directory with the following:

AddHandler application/x-httpd-php .html .htm