OZONE Asylum
Forums
Server-Side Scripting - Oh my!
Almost There..Site Check
This page's ID:
28776
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
[quote] [b]skyetyger said:[/b] OK The content div..has a command line.. >?php include ("$page.html") ?< So the menu links in the lefthand menu call in content.. If I put "content" where that command is..inside the div..What happens when the pages are called in? I will try putting some content in and see what happens..However.. Is there a command..that can be set on the page..that "calls" content for that page when it loads? There is an example on the Guru's Network but I can't get it to work on that page [/quote] This is very confusing, and I'm not sure how to answer your question. We will need to see your PHP, and how you have set up your includes/calls for content before we can offer any specific help. In general, there are two basic concepts for setting up templates like this - - you have 1 file that is your main page, with links to various sections of your site. when you click on the links, it reloads the page with a variable, such as 'index.php?page=this'. In the 'content' area of the page, you have an include which pulls in content based on the variable passed in the url (includes a file containing your content). - you have a seperate file containing your navigation, and each page that you create has a PHP include() which pulls in that file. [quote] [b]skyetyger said:[/b] I tried putting "content" into the content div on that page..and the content loaded from the left menu links ..into a big mess right together..two pages of content at once.. [/quote] You need to specify a file to include by default, when 'page' is empty, rather than hard coding default content into the page. [small](Edited by [url=http://www.ozoneasylum.com/user/163]DL-44[/url] on 12-30-2006 01:16)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »
Maximum Security
OZONE
DHTML/Javascript
Server-Side Scripting - Oh my!
CSS - DOM - XHTML - XML - XSL - XSLT
Stupid Basic HTML
Visual Therapy
Photoshop
Photoshop Pong, Anyone?
***WARNING*** BIG SIG APPROACHING
Photography
3D Modelling & Rendering
Multimedia/Animation
Print Graphics
Holding Pens
Philosophy and other Silliness
Outpatient Counseling
Site reviews!
Mad Scientists' Laboratory
Getting to know the Grail