php Templates, NVU and sidebar help?

by 3 replies
5
Hi Guys

Sorry for the lack of 'self-research' - desperate to get something up...

I have Chris Rempels templates which are essentially all .php files. I'm using a NVU so have amended the end of the files to .html and I've got the backbone of the content all done.

I'm nearing a part where I want to amend the sidebars and headings. Despite being renamed .html the source code still has php *stuff* in it and if I click on the php tag I get...

include("z-topleft.php"); and a box I can edit

(I did go to the NVU forum but couldn't register - obviously an exclusive club

Does anyone know if I have to amend each sidebar etc manually using NVU html stuff or it is possible to use the php bits which would obviously make life easier...

If someones able to point me in the right direction - that would be most appreciated!

Thanks in advance (got my fingers crossed!)

Alan
#programming #nvu #php #sidebar #templates
  • You want to convert those template to html?
    You may break things up...

    Anyway, if you still want to do it, replace all the "includes" by the content of the corresponding file, removing all the php tags.

    Patrice
  • It would be easier to edit the include files. (You'll have to switch the files back to .php before putting them on your site I think)

    That way 1 edit is reflected across the site.
  • You can also keep the .html extensions of the main files. Just edit your .htaccess to process .html files as .php files, and you're good to go.

    (I do everything in Notepad, so I'm no help with the NVU aspects)

    try:

    AddHandler application/x-httpd-php4 .php .html .htm
    or
    AddType application/x-httpd-php4 .php .html .htm

Next Topics on Trending Feed