hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : Menu issues
Reply

Web Design and Content Subjects include, HTML, graphics, editors, CSS, Flash, graphics creation, placing of ads, ad serv companies, copyright, content and nearly anything else design related. Also talk about businesses that provide design services. If you link to your site, you must post in Web Site Reviews.
Forum Jump

Menu issues

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 10-08-2003, 07:46 AM
hsvchris hsvchris is offline
Disabled
 
Join Date: Oct 2003
Posts: 1

Menu issues


I have just created a Website from a set template, this template has a side menu on it with links, it also has on it a latest news section. This is all good editing as one page site, but what we are talking about a 20 page site.

My question is: Is there a way I can link the menu and latest news section to a parent index so I don't have to change everypage seperately when the news and menu changs.

Thanks

Reply With Quote


Sponsored Links
  #2  
Old 10-08-2003, 04:27 PM
1AsianChic 1AsianChic is offline
Disabled
 
Join Date: Aug 2003
Posts: 476
yes, you can use SSI for php

Reply With Quote
  #3  
Old 10-08-2003, 06:33 PM
etogre etogre is offline
Web Hosting Master
 
Join Date: Aug 2003
Location: California, USA
Posts: 579
An example of a SSI in PHP.
PHP Code:
<?php
$title 
"Index";
@require_once(
'includes/header.php');
?>
Now we put our contents in here!!
<?php
@require_once('includes/footer.php');
?>
Then in header we could add

PHP Code:
<html>
<head>
<link rel="stylesheet" href="styles/main.css" />
<title>Site Name - <?php echo "$title"?></title>
</head>
<body>
Which would make a page that has a different title on each page given by the $title variable. Also, all you would need to do to change a layout or add a link to your pages would be to edit the footer and header includes.

Good Luck!

Reply With Quote
Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
Cloud Security Alliance Launches Website for Cloud-Related Legal Issues Web Hosting News 2013-02-25 11:27:00
A Look at the New WHM Interface in Version 11.34 of the cPanel Hosting Control Panel Web Hosting News 2012-11-12 12:57:03
cPanel Conference 2012: What's New with cPanel and WHM with Ken Power Web Hosting News 2012-11-12 13:54:56
More on Save Hosting Blog 2011-09-26 18:50:28
Open Source Developer Joomla Releases 1.7 CMS with Enhanced Security Tools Web Hosting News 2011-07-19 18:51:20


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?