|
#1
| |||
| |||
| 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 |
|
#2
| ||||
| ||||
| 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 |
|
#3
| ||||
| ||||
| 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 |
|
#4
| ||||
| ||||
| 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 |
|
#5
| ||||
| ||||
| 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] |
![]() |
| Thread Tools | |
|
|