Home  |  About  | Last |  Submit  |  Contact
AllQuests.com

Previous Question:  excessive compressing  SitePoint Support and FeedbackNext Question:  Ornaments Help  Just Starting Your Design
Question A lil help ( SitePoint Forums Just Starting Your Design )
Updated: 2008-08-12 07:17:46 (4)
A lil help

I知 new to web designing so I'll need some advice. I've been looking into CSS and I like what it can do: change the design of every page I create through one .css file. However, now I want to know how to separate the navigation from the content. I've heard a little about template engines but I don稚 really know much. Basically I just want something flexible so I知 able to add in extra menu links, change dates and pretty much change the whole layout without updating every single HTML file. I'll also need to be able to add in 3rd party scripts like a forum, an image gallery script and such. Point me in the direction of some good tutorials that give me the basics on this stuff... I just need my site to be flexible.

Thanx!

Answers: A lil help ( SitePoint Forums Just Starting Your Design )
A lil help

Quote:
Originally Posted by MeThoD-X
I知 new to web designing so I'll need some advice. I've been looking into CSS and I like what it can do: change the design of every page I create through one .css file. However, now I want to know how to separate the navigation from the content. I've heard a little about template engines but I don稚 really know much. Basically I just want something flexible so I知 able to add in extra menu links, change dates and pretty much change the whole layout without updating every single HTML file. I'll also need to be able to add in 3rd party scripts like a forum, an image gallery script and such. Point me in the direction of some good tutorials that give me the basics on this stuff... I just need my site to be flexible.

Thanx!
CSS won't allow you to add links etc. CSS will allow you to change the style of the page. To make quick changes to the content, you will need to use some kind of script. There are many good tutorials on the web. My favorite place is W3Schools where you can find tutorials for everything from basic html through complex ssi. They are free and they are hands on.

Shyflower

A lil help

To use an 'outside' menu file, create a .txt file and put all your menu contents in it. Then, on each page where you want to include the menu, use
Code:
<!--#include file="menu.txt" -->
Optionaly, if you use PHP,
Code:
<? include("menu.txt"); ?>
Learn more here

This way, when you want to change your menu, all you have to do is edit one page and it will display on all the pages where you run that include statement.

Possibility

A lil help

Quote:
Originally Posted by Possibility
To use an 'outside' menu file, create a .txt file and put all your menu contents in it. Then, on each page where you want to include the menu, use
Code:
<!--#include file="menu.txt" -->
Optionaly, if you use PHP,
Code:
<? include("menu.txt"); ?>
Learn more here

This way, when you want to change your menu, all you have to do is edit one page and it will display on all the pages where you run that include statement.
I know this isn't my thread, but thank you! I have been looking for a site just like that one!

Shyflower

A lil help

Yeah I Agree Above, I Didnt Know You Could Include text Files Like That And Display Everythjing Tho, But its What Most Sites Do I Think

____________________________________________

include("header.php");
____________________________________________

Main pages Here

____________________________________________

include("footer.php");

____________________________________________

Resident Evil

Previous Question:  excessive compressing  SitePoint Forums  SitePoint Support and FeedbackNext Question:  Ornaments Help  SitePoint Forums  Just Starting Your Design

- Source: A lil help SitePoint Forums Just Starting Your Design
- Previous Question: excessive compressing SitePoint Forums SitePoint Support and Feedback
- Next Question: Ornaments Help SitePoint Forums Just Starting Your Design





AllQuests.com