View Full Version : Cascading Style Sheets help ...
Poppy Design
3rd July 2006, 13:14
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
3rd July 2006, 13:18
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.
Rob Holmes
3rd July 2006, 13:44
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
Rob Holmes
3rd July 2006, 13:51
Another option would be to use dreamweaver Library files - or like Duane says - a server side include so you change 1 file and upload it - the next time the page is viewed the page shows the 'updated' include.
R
Poppy Design
3rd July 2006, 14:15
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
Joanne this is precisely what our new www.reflexeditor.com CRM system will do for you :-)
Rob
creospace
3rd July 2006, 14:45
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
dan_moore
4th July 2006, 23:34
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
Astaroth
5th July 2006, 06:06
Or if you are talking about the likes of a standard navigation menu or such you can always use the .master file for ASP.NET (just to show their is a world outside of PHP)
dan_moore
5th July 2006, 14:22
A world outside PHP? Surely not ;)
Dan