Web Design Forum: Fixed Layout/Menu - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Fixed Layout/Menu Rate Topic: -----

#1 User is offline   Michael Robson 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 180
  • Joined: 06-April 10
  • Reputation: 29
  • Gender:Male
  • Location:England
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 29 December 2011 - 11:32 PM

Hi Guys,

For my works internal website (Intranet) I am constantly making updates and adding/removing new tabs. The problem I have is I have to edit all the files as I have each page separate. What I am wanting to so is design a new site so that the Menu is fixed on the left and if I make a change to it, it applies to all pages. Then all I need to do is edit the Main page for each page.

Can anyone assist on hows best to do this or point me to so examples etc.

I hope this makes sense.

Cheers for your time!!!
0

#2 User is offline   Samus 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 367
  • Joined: 05-August 11
  • Reputation: 27
  • Gender:Male
  • Location:Hackney, London, UK
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 30 December 2011 - 12:47 AM

You'd only need to design the menu contents in one .php file.

And then require/include it in all your other pages.

So you can have a div in your other pages where you want your menu content to go, so you do:

<div id='menu'><?php require('menu.php'); ?></div>

where menu.php is the content of your menu.
0

#3 User is offline   midtable 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 01-January 12
  • Reputation: 1

Posted 01 January 2012 - 03:55 AM

This link explains it in slightly more detail:

http://www.tizag.com/phpT/include.php
1

#4 User is offline   Michael Robson 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 180
  • Joined: 06-April 10
  • Reputation: 29
  • Gender:Male
  • Location:England
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 01 January 2012 - 07:55 PM

View Postmidtable, on 01 January 2012 - 03:55 AM, said:

This link explains it in slightly more detail:

http://www.tizag.com/phpT/include.php


That website is brilliant. Thanks alot, puts it plain and simple, just the way i like it! :p ... +1 :)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users