Free Web Hosting Forum
(#1 (permalink))
Old
Junior Member
George7a is on a distinguished road
 
Posts: 12
Join Date: Sep 2010
Question Last new Item - 09-06-2010, 04:03 PM

Hello,

I would like to show my last news item on my main news page.

How can I do that?

For example, I have added 5 new articles, I want the last one to be shown automatically in my main news page.

Is this possible?

Thanks,

- George
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
Leder678's Avatar
Senior Member
Leder678 is on a distinguished road
 
Posts: 1,430
Join Date: Jan 2009
Location: Norway
Send a message via MSN to Leder678
Default 09-06-2010, 05:15 PM

Do you allready have a news script, but want to fix it to limit 5 articles in the correct order, or do you need a new script?
Reply With Quote
(#3 (permalink))
Old
Junior Member
George7a is on a distinguished road
 
Posts: 12
Join Date: Sep 2010
Default 09-06-2010, 05:49 PM

I guess I do not have a script.

I am going to my admin page, and add a news (item) there.

I would like the last one to appear in the main news page.

What script do I need, where can I find it?
Reply With Quote
(#4 (permalink))
Old
Leder678's Avatar
Senior Member
Leder678 is on a distinguished road
 
Posts: 1,430
Join Date: Jan 2009
Location: Norway
Send a message via MSN to Leder678
Default 09-07-2010, 06:07 AM

A simple blog script would do the work, but however, you could try looking for a script at hotscripts
Code:
http://www.hotscripts.com/category/php/scripts-programs/news-publishing/
Anyway, wordpress would probably work fine
Reply With Quote
(#5 (permalink))
Old
drums's Avatar
Senior Member
drums is on a distinguished road
 
Posts: 579
Join Date: Aug 2010
Location: Oz
Default 09-07-2010, 11:31 AM

Hi George,

Because you're using the free website builder, as far as I know, there's no easy way to set it to just display the most recent article. I think it will only display the full list (most recent first). You need to click on an item to display the particular article, and because there's no way to know what the most recent article ID is, there is no easy way to get it to always show the most recent on on your news page.

The scripts mentioned by leder won't work in conjunction with the free web-site builder (they will have separate admin interfaces, etc).

drums
Reply With Quote
(#6 (permalink))
Old
Junior Member
George7a is on a distinguished road
 
Posts: 12
Join Date: Sep 2010
Default 09-07-2010, 05:26 PM

Thanks for letting me know.
Reply With Quote
(#7 (permalink))
Old
drums's Avatar
Senior Member
drums is on a distinguished road
 
Posts: 579
Join Date: Aug 2010
Location: Oz
Default 09-08-2010, 03:50 AM

There are workarounds if you REALLY want to do it..

The quickest one is to just have the home page set to display a particular news article, and everytime you add a new article, then just change the article id. For example: Your most recent article at the moment is:
Code:
index.php?news&nid=11
You could set up the home page to show this article, and then when you add a new article, change the 11, to 12. You could add the page using the iframe method (1 way to do it).

It's not the "neatest" way, but it will get you the result you want and might prompt you to have an idea for a better way of doing it!

drums
Reply With Quote
(#8 (permalink))
Old
Junior Member
George7a is on a distinguished road
 
Posts: 12
Join Date: Sep 2010
Default 09-08-2010, 04:05 PM

How can I set a certain page to show another one?
Reply With Quote
Reply

Thread Tools
Display Modes

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



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com