hosted by liquidweb


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

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



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

  #3  
Old 10-08-2003, 06:33 PM
etogre etogre is offline
Web Hosting Master
 
Join Date: Aug 2003
Location: California, USA
Posts: 581
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!

Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
More Downtime for HostGator and BlueHost Customers as Router Issues Plague Utah Data Center Web Hosting News 2014-04-16 15:46:56
.Club Domains Signs ICANN Registry Agreement Web Hosting News 2013-11-11 16:00:44
GoDaddy Launches Pre-Registration for New gTLDs Including .MENU Web Hosting News 2013-11-11 11:28:59
Amazon Web Services Northern Virginia Outage Rocks Instagram, Vine Web Hosting News 2013-08-26 14:33:03
cPanel Conference 2012: What's New with cPanel and WHM with Ken Power Web Hosting News 2012-11-12 13:54:56


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?