View Full Version : style sheets
theweekid
10-06-2003, 8:14 AM
my web deign is fairly limited,
am i right in saying i can use style sheets as a "template" for the other pages contained within a site so that i can edit one page like linkage etc and it looks else where for the "body"
not sure how to do it is it easy? can style sheets do it, do they have limitations? who they run the index of www.westchurch.co.uk coz its getting a pain having to enter all the new links to loads of pages. Please help!
Cheers!
Mntsnow
10-06-2003, 8:32 AM
Style sheets really wont put "information" into place automatically for you but they will help you keep the same same size fonts and font styles thru-out your site when implemented correctly.
What you want is a true "template" system which will auto populate given sections (In your example the Links section on every page) (One that comes to mind even though I'll get teased for suggesting it is... using frontpage and a frontpage extendtions enabled server..)
theweekid
10-06-2003, 8:35 AM
theres no other way? coz my server isnt got it enabled!
Mntsnow
10-06-2003, 8:43 AM
Sure...Go with something dynamic like phpnuke, phpportal, postnuke ect... that stores all of the information in a database and then pulls it depending on what coding you have for the different pages...
This site uses php and MySql
theweekid
10-06-2003, 12:22 PM
looks all to confusing - ah
downloaded phpnuke and man whats goin on! AAAAHHHHHHHH
Mntsnow
10-06-2003, 1:21 PM
What kind of server are you using? or who is your host provider?
theweekid
10-06-2003, 1:35 PM
www.freenetname.co.uk
OuTpaTienT
10-06-2003, 4:40 PM
Maybe this might be what you need...a search & replace utility for use with multiple files simultaniously. When my isp changed our web pages from attbi.com to comcast.net I had literally thousands of lines that needed to be edited in hundres of .html files. Even doing a search & replace was going to take forever because I still had to do it for each file. Figured there MUST be a better way so I went looking for help.
I found this handy little gizmo: His Grepship (http://members.optusnet.com.au/~sholtod/)
It allows you to do a search & replace function on multiple files all at once. All I had to do was tell it to find all of my files named *.html in my html directory (and sub-directories), and in each file it should search for the text "attbi.com" and replace it with "comcast.net". It took about 4 seconds for it to make 3000+ substitutions in 320 files.
It's only a 30 day free trial, but it is fully functional for those 30 days.
Out:
You can do the same thing by opening HTML, PHP, etc file using text editor and selecting EDIT\REPLACE and simply typing the Findwhat and then the replace with and ENTER
OuTpaTienT
10-06-2003, 6:21 PM
Using what text editor?
Ooops, my bad... I just reread your post. The Windows Text editor will only do 1 file at a time, not multiple... Sorry.. :o
OuTpaTienT
10-06-2003, 11:32 PM
Ok. Well that's good. I thought maybe I was overlooking something or unaware of some super secret Windows tip. :D
No, it was I who was overlooking.... Sorry about the confusion I caused.. :)
wingedbuttmonkey
10-20-2003, 5:33 PM
you should do some research on php includes and navigation.
It is very easy to make your own small php file and then include it wherever you want to. This way you only have to edit ONE file with your links and it updates EVERY page.
Nimble Rabit
12-29-2003, 12:32 AM
Well you could just do all the template stuff offline with a program like dreamweaver(thats what I do) or you could design something with javascript or php(I think I have a pretty good Idea for a javascript one)
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.