CodeIgniter Forums
Help. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Help. (/thread-8757.html)



Help. - El Forum - 05-30-2008

[eluser]Shahgeb[/eluser]
Hi Everybody

I am working on project that hold news content of globe.
Now i am on can show the category of news on page. but the requirement is if i select the news on secondhalf of page i have to show all related news that have selected before. what is logic i have to used behind this. This is problem that i am facing. so please help and guide me how i can do this.


Best Regard
Amjad Farooq


Help. - El Forum - 05-30-2008

[eluser]poji23[/eluser]
Not too sure if I understand your question here, but to show "related" news maybe you can add tags to your newsi stories and that way you can pull out all simlar tags?


Help. - El Forum - 05-30-2008

[eluser]Shahgeb[/eluser]
can you post me some theoratcally material that i can read and make it clear for me.
plz


Help. - El Forum - 05-30-2008

[eluser]Pascal Kriete[/eluser]
I'll try to explain.

With each entry the user also enters tags - simple keywords that describe the situation. So for a sample article, let's use "The Extinct Short-snouted Aardvark: A Case Study", you might have "short-snouted", "aardvark", and "starved". Then you can query your database for articles that contain one or more of the same tags.

The biggest problem I see here is that news are only relevant for about a week. So just drawing on old articles doesn't present relevant information. Instead you might try to categorize news. For example the New York Times has "World", "US", "Region", "Technology", "Science", "Arts", etc. They just display recent articles in the same category, as those are more relevant.


Help. - El Forum - 06-01-2008

[eluser]Shahgeb[/eluser]
thanks i will try to do it practically.