Welcome Guest, Not a member yet? Register   Sign In
Can anyone share (link to) sample CI app using tags?
#1

[eluser]Unknown[/eluser]
Blog, news engine or anything like that. Thanks. Smile
#2

[eluser]TheFuzzy0ne[/eluser]
Welcome to the CodeIgniter forums!

Please check out [url="http://codeigniter.com/tutorials/"]The video tutorials[/url] (on of which demonstrates how to build a simple blog in 30 minutes). You should also be able to find [url="http://ellislab.com/forums/viewthread/107773/"]other useful information here[/url].
#3

[eluser]Unknown[/eluser]
Sorry but I can't find CI app (or tutorial, blog post, plugin) where tags implemented. I mean tags... little keywords. Any advice, please?
#4

[eluser]xwero[/eluser]
Just create a table to store the tags and use as many tables you need to connect the tags with the appropriate items, for example blog_tags with the fields blog_id, tag_id.
#5

[eluser]TheFuzzy0ne[/eluser]
[DELETED]
#6

[eluser]gyo[/eluser]
Or you can give a look at how wordpress handles tags, just for some inspiration..... Wink
#7

[eluser]Nick Husher[/eluser]
To store tags, you can have a single input field where tags are delimited by commas. Each tag is extracted and inserted into a database table consisting of the tag name and the ID to the resource (blog post, image, whatever) that the tag is being applied to.

Then you can define a method that allows you to get all resources with a particular tag by joining the tags table to your resources table and returning all results that the table join turns up.

The details are up to you, but that's the basics of it.




Theme © iAndrew 2016 - Forum software by © MyBB