1
Matt_T_hat
Custom Pages
  • 2004/11/9 9:40

  • Matt_T_hat

  • Just popping in

  • Posts: 41

  • Since: 2004/11/9


Before useing XOOPS I had some very basic code running that allowed me to simply add new pages taht would be included witht he index.php with this code:

//The result that should be run in the main 
 
if(!$_GET['page'] || !file_exists('./cont/'.$_GET['page'].'.php')) { 
  include(
'./cont/default.php'); 
} else { 
  include(
'./cont/'.$_GET['page'].'.php'); 

?>


(I had another that read in the contents and made the hyperlinks)

The point is that my menu remained unchanged along with the footer and other eliments but the body content changed.

Is there any way that I can generate additional page(s) with out spoffing modules...

I used to do it so that each page would be:
index.php?page=PAGENAME

I think you understand what I want to do but I want to be able to use php, html or whatever like in the custom blocks.

Login

Who's Online

220 user(s) are online (176 user(s) are browsing Support Forums)


Members: 0


Guests: 220


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits