Jump to content

Manage repeating content

Whether you're a seasoned veteran or a struggling beginner, Web Radiance is the web development and web design forum for you. You'll find answers to all your HTML, CSS, SEO, and Programming needs. Pull up a chair and stay awhile.

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Manage repeating content Rate Topic: -----

#1 User is offline   sam 

  • W.R. Corporal
  • Group: Members
  • Posts: 117
  • Joined: 07-February 07
  • Gender:Male

Posted 09 February 2007 - 11:57 AM

How do you edit/update repeating content on multiple pages ? It would be great if you could update one page and the changes would reflect on all pages. I used to do it using frames. Is there any other way for this ? I think its possible using php but I am looking for other means. [I am not sure if this is the right spot for this topic. If not please move it to the appropriate place.] Thanks.

This post has been edited by sam: 09 February 2007 - 11:58 AM

0

#2 User is offline   marcamos 

  • W.R. General
  • Group: Administrators
  • Posts: 2,849
  • Joined: 04-April 06
  • Gender:Male
  • Location:Massachusetts - USA

Posted 09 February 2007 - 12:04 PM

That really requires SSI (server side includes). That is where you have one file that contains a chunk of code that happens to be common to all pages in your site. Navigation areas, footer areas, etc. are all common chunks of code that are seen on every page.

You would take that code off of all the pages and instead insert it into one file. Then you put a little snippet of code into each page that calls upon that first file you made.

The server inserts the common code into each page before it is delivered to the visitor's browser, and they don't know the difference.

The benefit, as you desire, is that when it becomes time to update the navigation (for example), you open up that one file that contains the navigation code, make your changes, and save it. Afterwards, all pages call upon that code and viola, your new changes are seen on every page.

You mentioned not being able to use PHP? Well, includes are common in just about every server-side coding language, such as ASP, ColdFusion, JSP, etc.

If you don't have access to these common coding languages and the servers they utilize, and you're forced to use only HTML, then I do believe frames are your only choice.
0

#3 User is offline   sam 

  • W.R. Corporal
  • Group: Members
  • Posts: 117
  • Joined: 07-February 07
  • Gender:Male

Posted 09 February 2007 - 01:09 PM

Thanks Marc.
0

#4 User is offline   william 

  • SEO Specialist
  • Group: Members
  • Posts: 233
  • Joined: 13-October 06
  • Gender:Male
  • Location:Gloucestershire, UK
  • Interests:SEO, Web Design, PHP Development, Wordpress, Fireworks, Photoshop, EpiServer

Posted 11 February 2007 - 07:37 AM

The best way to achieve this without any of the methods Marc mentioned, is to use Dreamweaver's template function.

Check out this guide

Tell us how you get on if you are using DW.
0

#5 User is offline   Ben Abrams 

  • The buddy system:never fails
  • Group: Administrators
  • Posts: 1,850
  • Joined: 04-April 06
  • Gender:Male

Posted 11 February 2007 - 10:05 AM

also, you may want to read this post:

Using 2 HTML Files In One Page

View PostSirkent, on 21 September 2007 - 04:26 AM, said:

<monty python high-pitched female voice>I DON'T LIKE SPAM!</monty python high-pitched female voice>
0

#6 User is offline   sam 

  • W.R. Corporal
  • Group: Members
  • Posts: 117
  • Joined: 07-February 07
  • Gender:Male

Posted 13 February 2007 - 05:26 PM

Thank you all for your response. I use dreamweaver along with hand coding. I have one question for which I am yet to find an answer regarding dreamweaver templates. Is it possible to add items other than text and images to the editable region ? For example... I have a website where the content and layout of the main section changes. But the menu and logo and corresponding links remain the same. Is it possible to use dreamweaver templates in this scenario ?

On the topic of inserting html page in to another... apparently it is possible to do it by inserting it as an object. Anything beyond that was Greek and Latin to me. May be the pro's here can enlighten us what that is all about... here is the link...

http://www.aplus.co.yu/web-dev/insert-html...ther-html-page/

This post has been edited by sam: 13 February 2007 - 06:19 PM

0

#7 User is offline   TJSingleton 

  • Allegedly Legendary
  • Group: Members
  • Posts: 517
  • Joined: 31-July 06
  • Location:Winder, GA

Posted 13 February 2007 - 05:49 PM

RE: dream weaver question: -- should be yes.
0

#8 User is offline   william 

  • SEO Specialist
  • Group: Members
  • Posts: 233
  • Joined: 13-October 06
  • Gender:Male
  • Location:Gloucestershire, UK
  • Interests:SEO, Web Design, PHP Development, Wordpress, Fireworks, Photoshop, EpiServer

Posted 14 February 2007 - 05:17 AM

Yeah, within the editable region you can enter any code you like.

I use it on a couple of sites where everything like the nav menu, header, footer, certain columns are all designed through my root template. Then when I create a new page from the root, all I can change is the areas I have designed to be editable. In here, I change all my content etc.

It is also very useful for setting up 'house' styles for pages. For example, I have a restaurant review site which every review looks the same in relation to format, layout etc. My root review page has dummy titles, forms, and pictures all ready set up so when I enter a new restaurant, I just change those particular items.

The best way to find out whether it can do what you want it to do is have a play around.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

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