image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Design & Media

Reply
 
Thread Tools
  #1  
Old October 3rd, 2004, 03:24 AM
Registered User
 
Join Date: Nov 2003
Location: London, UK
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
jonparadise is on a distinguished road
Adding a Latest News section.

I'n in the middle of developing a relatively simple site. On the index page there is a 'latest news summary' section, that links to the main news page.

Instead of updating the front page manually, what is the simplest way to code the page to automatically update the 'latest news summary' (say with just a title and the first paragraph) when I upload the full news article to the main news page.

Very much like they do on regular news sites.
__________________
iBubble.net

15" Powerbook G4
, 1Gb RAM, Tiger 10.4.5
iPod Video 60Gb 5G
Nokia 6680
Reply With Quote
  #2  
Old October 3rd, 2004, 09:18 PM
mdnky's Avatar
[Bobs/Prog/Design:~] mod%
 
Join Date: Jul 2001
Location: Baton Rouge, LA - USA
Posts: 2,648
Thanks: 0
Thanked 0 Times in 0 Posts
mdnky is on a distinguished road
It'll need to be scripted in some manner, PHP would probably be the best choice though there are other viable ones out there.

Do you have access to PHP and MySQL on your server would be the first thing to find out.
__________________
.
| mdnky@macosx.com | My Homepage | My Music | Restore the Pledge | MacOSX.com Widget |

• MacBook Pro Core2Duo 2.33GHz 15", 2GB DDR2 RAM, 120GB, DL Superdrive, OS X 10.5,
• Apple 23" Cinema HD Display, Apple Slim-Alum Keyboard, Apple BT Alum Keyboard, Logitech Optical Scroll Mouse
• iPhone 3G, iPhone 8GB, iPod Photo 30GB, Nikon D50, Nikon L6, Epson 3490, Epson R1800, HP LaserJet 1200
• LaCie 500GB d2 Quadra, LaCie 160GB d2 FW, harman/kardon SoundSticks II, Mighty Mouse, iSight

Reply With Quote
  #3  
Old October 3rd, 2004, 09:30 PM
Trip's Avatar
www.TannerSite.com
 
Join Date: Sep 2001
Location: Utah
Posts: 3,266
Thanks: 0
Thanked 0 Times in 0 Posts
Trip is on a distinguished road
Is there anyway to do it through HTML code? I know, HTML is quickly becoming outdated and is not very powerful, but is there no way?
__________________
13" MacBook - 2GHz. 2 GB RAM. OS 10.4.7
12" iBook - 500 MHz. 640 MB RAM. (R.I.P.)
TannerSite.com
Reply With Quote
  #4  
Old October 5th, 2004, 12:01 AM
mdnky's Avatar
[Bobs/Prog/Design:~] mod%
 
Join Date: Jul 2001
Location: Baton Rouge, LA - USA
Posts: 2,648
Thanks: 0
Thanked 0 Times in 0 Posts
mdnky is on a distinguished road
Manually of course...but if he wants it to auto update, then he'll need some kind of scripting to handle that.

There's a bunch of free options out there, you just have to look around. Check out www.hotscripts.com to see if they have something that might work for you.
__________________
.
| mdnky@macosx.com | My Homepage | My Music | Restore the Pledge | MacOSX.com Widget |

• MacBook Pro Core2Duo 2.33GHz 15", 2GB DDR2 RAM, 120GB, DL Superdrive, OS X 10.5,
• Apple 23" Cinema HD Display, Apple Slim-Alum Keyboard, Apple BT Alum Keyboard, Logitech Optical Scroll Mouse
• iPhone 3G, iPhone 8GB, iPod Photo 30GB, Nikon D50, Nikon L6, Epson 3490, Epson R1800, HP LaserJet 1200
• LaCie 500GB d2 Quadra, LaCie 160GB d2 FW, harman/kardon SoundSticks II, Mighty Mouse, iSight

Reply With Quote
  #5  
Old October 5th, 2004, 06:53 PM
changomarcelo's Avatar
Friend of the elves
 
Join Date: Dec 2001
Location: Temperley, BuenosAires, Argentina
Posts: 170
Thanks: 0
Thanked 0 Times in 0 Posts
changomarcelo is on a distinguished road
I think the better idea is to make a news module with PHP & MySQL. You'll need a backend where to add/update/delete news into the database. Then, in the visible part of your site you'll have to make the code for three pages: The home page script where you'll retrive the latest news, a full list of news and the news page itself. All these can be done very simply with PHP. Just ask me if you want!!
__________________
Marcelo

My Mac:
[Mac G4 1GHz] - [Mac OS X] - [768MB RAM] - [60GB HD] - [Philips 17" display] - [Microsoft IntelliEye Mouse]
Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 01:35 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.