Cascading Style Sheets help ...

Poppy Design

Free Member
Mar 30, 2006
803
80
Moray, Scotland
Hello

As a novice to CSS, I just wondered if this was possible :

If I design a site with simple text links (say one line of them together) can I set up in my CSS to control these links? i.e if I were to add in an extra text link and wanted to update all the site without actually editing each page.

So far I have used the CSS's to control all design/layout elements but not sure about actual content?

Thanks
Joanne
 

DuaneJackson

Free Member
Jul 14, 2005
8,641
1,099
Brighton / London
Hi Joanne,

I'm not sure if that's possible - but I'd be happy to be corrected.

The way we achieve what you're trying to do is to use something calles SSI (Server Side Include)

This allows you to store the content in a single file, and then just put one line of code on the page where you want the text to appear. You can then change the text file and it will update all of the pages that use that include file.
 
Upvote 0

Rob Holmes

Free Member
Business Listing
Mar 23, 2005
3,600
23
Kent
theivybridgecollection.com
joannemacrae said:
Hello

As a novice to CSS, I just wondered if this was possible :

If I design a site with simple text links (say one line of them together) can I set up in my CSS to control these links? i.e if I were to add in an extra text link and wanted to update all the site without actually editing each page.

So far I have used the CSS's to control all design/layout elements but not sure about actual content?

Thanks
Joanne

Joanne this is precisely what our new www.reflexeditor.com CRM system will do for you :)

Rob
 
Upvote 0

Poppy Design

Free Member
Mar 30, 2006
803
80
Moray, Scotland
Hi Rob

Thanks for the message!
It seems that some clients want a CMS system for their new website - which is fine but other clients when asked at the beginning if they need that facility say no - yet still expect to be able to change the site at the end without actually learning web design!!

I will go and try out your software later as I need it for another client anyway.

thanks v.much
Joanne

Matrixx said:
Joanne this is precisely what our new www.reflexeditor.com CRM system will do for you :)

Rob
 
Upvote 0
I use php includes which are very easy to use


<? include('nameoffile.html');?>

then nameoffile.html has the content in it that you want inserted. You can then stick this statement in every page where you want to put the same content. It's great for navigation where you only have to change one file to make the change seen in all files.

2 things to remember:

You must have php installed on the server which is like 99% likely

The files that have the include statements in them need to be saved as .php rather than .html so that the server realises it has to do something with them. This makes no difference to anything else you have going in the file , assuming it's not a .asp file already :)

Feel free to pm for further help.

Gary
 
Upvote 0

dan_moore

Free Member
Mar 21, 2006
278
3
Hampshire
I vote for Gary's solution: I always use php includes for this sort of thing too.

It's really easy and incredibly time saving; just cut and paste your links into a new text file, save it as links.html or whatever, then add the include line - with relevant filename - as per Gary's post on each page that will include the file. Et Voila!

If your host doesn't have php then try SSI instead (see 'The File Command' from this first link returned from google for ssi include: http://www.htmlgoodies.com/beyond/webmaster/article.php/3473341)

Cheers

Dan
 
Upvote 0

Latest Articles

Join UK Business Forums for free business advice