Jump to content

news logic


hamza

Recommended Posts

how i can make current news and old news.

 

When you add new news it becomes current and all other news becomes old.

 

dear but what about today if i have 34 news in list so should i show 34 news current and other last days new

old news.

how i can differenciate or get from db.

Link to comment
Share on other sites

dear but what about today if i have 34 news in list so should i show 34 news current and other last days new old news.

 

That would completely depend on your spec.

 

how i can differenciate or get from db.

 

Store them along with a timestamp.

Link to comment
Share on other sites

I agree with Pikachu2000 with the timestamp of creation but are you also not planning to have a general date of the article too? a d/m/Y format which the user controls and the news is ordered by that.

 

Generally, you should show 5/10 items and have view archive or something which shows all.

 

Or add in a trigger field to mark it as archived. But probably making it "complicated" as that is a manual process after.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.