Say if I have about 10 articles on my site now, and I am cross linking them. Everytime when I add a new article, I need to manually add the link on the last 10 pages, as well as the new page I am going to add. This is really tedious. Is there a way to automate this task? Some java or php script or something? I am not considering navigation bar. Thanks. Viz
One way to do this would be to use a php include file. You would call the file up on each page where you want the links to appear - the file itself would be located outside the pages. When you add a new article you would just need to add the link to the one include file and it would autmoatically update on all pages where the include file is called for. Here is an article that explains in more detail about how to do this PHP Includes Make a Webmaster's Life Easier
Thanks, very helpful indeed. But wouldn't putting this code: <?php include '/home/Account ID/public_html/directory/name.php'; ?> in the page compromise security? You are revealing your account id in this instance. Viz
No that code will appear no where when you view source. For example if you view the source for the page the article appears on you will not see that sort of code anywhere though it is used several times. This is a server side include - the server intreprets it before it goes to the browser and only the code that is actually inside the include file will show up. Try it out - go back to that article and "view source"
Easy solution: Use the PHP code listed above. Complex solution: Get a MYSQL database and put your articles in there. Build your pages to automatically include all relevant content - essentially a Content Management System [CMS] (told you it was more complex!)
Joomla's scary! Try something like Website Baker at websitebaker[dot]org It's a lightweight CMS package but if all you need is to add and edit pages, it does the job. It also has SEO URLs built-in too!