User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 455,979 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,786 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 980 | Replies: 8
Reply
Join Date: Nov 2007
Posts: 6
Reputation: cjm712 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
cjm712 cjm712 is offline Offline
Newbie Poster

How to switch layouts without affecting content

  #1  
Nov 29th, 2007
How do sites quickly make updates to thousands of pages with user created content without affecting the old content. I know you can do it in php resulting in urls such as .../profile.php?id=000000000&ref=nf such as facebook does. I don't know php but maybe there is a way to get the same effect without affecting the url (witch is my goal). Digg.com is another site that i saw go through an update, updating all old pages as well and there urls don't look like that. At first I thought it was all done through css but I don't think some of that changes they made are possible through pure css. If you can help me in any way learning how to build this capability that would be great. thanks
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: How to switch layouts without affecting content

  #2  
Dec 1st, 2007
They use one common external style sheet for all of their web pages. All they have to do is change the style sheet, and the whole look of the site changes.
Last edited by MidiMagic : Dec 1st, 2007 at 1:48 am.
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Dec 2007
Posts: 69
Reputation: innovativeatul has a little shameless behaviour in the past 
Rep Power: 0
Solved Threads: 0
innovativeatul's Avatar
innovativeatul innovativeatul is offline Offline
Junior Poster in Training

Re: How to switch layouts without affecting content

  #3  
Dec 1st, 2007
I agree with midimagic that the proper way is to use a external css file and then import the css. In this way if you change single external css file than the whole look of the site gets changed.
Reply With Quote  
Join Date: Nov 2007
Posts: 6
Reputation: cjm712 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
cjm712 cjm712 is offline Offline
Newbie Poster

Re: How to switch layouts without affecting content

  #4  
Dec 3rd, 2007
How do they add a new menu item through css?
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: How to switch layouts without affecting content

  #5  
Dec 4th, 2007
Have one page with the menu on it, and put links to that page in all the other pages.

Or edit each page separately to add the item.
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Nov 2007
Posts: 6
Reputation: cjm712 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
cjm712 cjm712 is offline Offline
Newbie Poster

Re: How to switch layouts without affecting content

  #6  
Dec 4th, 2007
I'm saying they added new menu items to thousands of pages quickly. The changes were seen on every page. Are you saying the code for the menu was imported from another file? There is no way they edited each page.
Reply With Quote  
Join Date: Jun 2004
Location: Hemet, CA
Posts: 429
Reputation: FC Jamison is on a distinguished road 
Rep Power: 5
Solved Threads: 18
Colleague
FC Jamison's Avatar
FC Jamison FC Jamison is offline Offline
Posting Pro in Training

Re: How to switch layouts without affecting content

  #7  
Dec 6th, 2007
In sites I design, I create my menus using javascript. By changing one file, the menu is updated on every page that calls the script.
Reply With Quote  
Join Date: Nov 2007
Posts: 6
Reputation: cjm712 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
cjm712 cjm712 is offline Offline
Newbie Poster

Re: How to switch layouts without affecting content

  #8  
Dec 6th, 2007
Cool thanks, thats one way I look into.

Something else I just thought of is there anyway to batch edit html files?
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: How to switch layouts without affecting content

  #9  
Dec 9th, 2007
Another possibility is that they edited the files offline, and then uploaded them nearly simultaneously.
Daylight-saving time uses more gasoline
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 9:21 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC