cotonti.com : Using Tags in Plugins https://www.cotonti.com Laatste forum onderwerpen Cotonti en Fri, 28 Nov 2025 00:53:06 -0000 urlkiller Thu, 25 Mrt 2010 07:23:42 -0000 Trustmaster There an array $tag_areas, you can extend it with your own search this way:
hook into 'tags.first':
$tag_areas[] = 'files';
function sed_tag_search_files($query)
{
    // Perform the search
}
See examples of such functions in tags/inc/functions.php]]>
Thu, 25 Mrt 2010 04:44:54 -0000
urlkiller
the question is i want to use the index.tags and the search and both only looks for tags with pages and forum as cat?!

if i add a tag with the cat "files" it just wont show up in the regular serch...

Added 44 seconds later:

or do i have to change some array somewhere ? tags.php maybe?]]>
Thu, 25 Mrt 2010 03:09:22 -0000
Trustmaster tags plugin is a good implementation for 'pages' and 'forums'. You can use tags.forums.* to see how you could use these functions for 'files' or anything else as well, because the API works the same way for any module or plugin.]]> Di, 23 Mrt 2010 17:57:38 -0000 tensh http://www.cotonti.com/docs/en/developer/code_reference

we can find Tags API. So we can reuse specific functions for adding tags, etc.]]>
Di, 23 Mrt 2010 16:18:22 -0000
urlkiller
is there a way that i can add Tags as Category "files" instead of forum or page?
i mean i tried NOT to make my own tag system and i wanted to use the onboard version.
so how did i add/edit/delete show tags i was working in my plugins with.

any tut i missed?]]>
Di, 23 Mrt 2010 07:26:38 -0000