HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 14th, 2012, 08:01 PM
volcanicglass volcanicglass is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2012
Posts: 1 volcanicglass User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 17 sec
Reputation Power: 0
Easy updating news sidebar?

Hi everyone,

Really new to web development and learning a bit of HTML5 and CSS. I'm working on a site that needs an announcement bar to appear on every page. At the moment, every page has the structure code for the sidebar, but I'm curious as to how I could keep them linked.

In other words, what would be an effective way so that when the site goes live, I can add news and announcements and then have it change for every page that the sidebar appears on?

I'm also a little confused about these announcement sidebars in general. Do most people add stuff by actually editing the source code for the website? Like actually go in and add a new announcement element to the sidebar?

Or can you do something more roundabout like create a page that is not accessible to the general public that has a form where you can type new information to send to all the other pages?

Is this something that can be accomplished simply? Or is this something that requires javascript?

Thanks,

P.S. Hope the question made sense.

Reply With Quote
  #2  
Old June 14th, 2012, 10:23 PM
Catacaustic's Avatar
Catacaustic Catacaustic is offline
Code Monkey V. 0.9
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Mar 2005
Location: A Land Down Under
Posts: 1,898 Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level)Catacaustic User rank is General 12nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 4 Days 18 h 52 m 45 sec
Reputation Power: 1798
Most of the time any site that has a 'news' section will use some form of blogging software so make it easier. That also lets them integrate any sort of 'Latest News' easily, because it's all in the same system.

Of course, if you have a static HTML site that's not going to help. There's a couple of options:

First is to update the source code of the pages every time you update the news area. That's really the worst way to do it because it is very easy to miss one or two pages every update.

Second way is to use server-side-includes (if your server allows this) or use a server-side language like PHP to include a single file into your HTML layout that contains just the sidebar code. That will let you update only one file, but have that single file be included on every page that it needs to be seen on.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Easy updating news sidebar?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap