CodeIgniter Forums
Tagging system in CI - 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: Tagging system in CI (/thread-22306.html)



Tagging system in CI - El Forum - 09-04-2009

[eluser]danijelb[/eluser]
I am writing CMS for personal use and for learning.

I am completely done just with login Smile
And I am working on articles, pages and image galleries.

They are almost done, but I want to add tagging system to them. So that I can tag each article/page/image and then on front-end show related articles, and tag-cloud.

Is there any tutorial out there on how to this in CI, because I want to move on, build some new things, and I can't if this isn't done. Smile

Thanks in advance.


Tagging system in CI - El Forum - 09-04-2009

[eluser]Mareshal[/eluser]
First of all, I wouldn't start with login. Login system is the last on my list.

search for code igniter tutorials on google and you will find thousands at this moment


Tagging system in CI - El Forum - 09-04-2009

[eluser]danijelb[/eluser]
Well, as I wrote I am almost done with articles/pages/image galleries except tagging system.
And I started with login system as it is part of Admin_Base controller which I am using to extend all other admin classes. So Admin_Pages extends Admin_Base and Admin_Base extends Controller. Smile


Tagging system in CI - El Forum - 09-10-2009

[eluser]jegbagus[/eluser]
i think you should add 2 more table,
master tag that hold all kind of tag, and tag that connect between the object with the tag.

table :
mstag (tag_id, tag_name, tag_desc, insert_date)
tag (tag_id, obj_id, type)
type is kind of the tagged object (image / post / etc)
obj_id will be the id of tagged object (imageid, postid, etc)