myself1982
11-23-2002, 08:10 PM
Hello
I will be making my first site shortly.
I have a question.
Say i make a site with loads of pages, then few months later i wanna add another link to each page, how do i do it without manually going around and adding the link to hundreds of pages, do you know what i mean?
Thanks
filburt1
11-23-2002, 09:21 PM
You can use a templated system by including a common header and footer. PHP, ASP, JSP, even SSI can do it.
myself1982
11-23-2002, 09:34 PM
That doesn't mean much to me at this moment :)
Could you explain bit more? Is it easy to do?
Thankyou
filburt1
11-23-2002, 09:37 PM
In this context (adding a link to every page), just do this:
1. Put the HTML for the links in "links.html"
2. Give each of your pages that includes this list an extension of .php
3. Wherever you want the list of links, put this instead:
<? require('links.html'); ?>
myself1982
11-23-2002, 09:43 PM
Thanks, but sorry, i honesty don't follow, i am very much a novice.:(
Gordo
11-23-2002, 09:44 PM
It's generally not a good idea to list dozens and dozens of your own pages on each page anyway.
If you know you will have many pages, then you may wish to categorize them in groups of some fashion and link that way.
My own example is one covering a topic of the US, the home page links to the State pages, and the state pages link to the home page and the counties within each state. The county pages simply link to that state and the home page.
myself1982
11-23-2002, 10:13 PM
Well, what i meant was, that say i have 6 links.
Each link has sub catergories etc.
But say i do the whole site and finish it, but remember that i want to add another link to the 6 main ones already there (Say i want to add a guestbook link i forgot or a poll or something), how do i add the link without having to go around manually every page i did with the 6 main links adding the extra one without using frames.
IGobyTerry
11-23-2002, 10:17 PM
You could use SSI or a PHP Template System. Both however are quite difficult. There is a SSI guide at www.bignosebird.com and there is a PHP Guide at www.php.net
JedKent
11-23-2002, 11:43 PM
You would probably be best off using SSI as a beginner and renaming your extensions to .shtml instead of .htm or .html. However, some servers will still support .html extensions with SSI--you need to ask your host.
I suggest searching the net for an SSI tutorial. It's very easy to use, but just too complex to explain on a message board.
Good luck to you.
tagalaxy.net
11-24-2002, 06:43 AM
if you dont want to do that, you could use a simple find & replace tool.
i highly reccomend EditPad (http://www.editpadpro.com/) as a text editor that can find & replace across multiple files.