...
Code Block | ||||
---|---|---|---|---|
| ||||
{if Phpfox::isModule('tag') && Phpfox::getParam('tag.enable_tag_support')} {module name='tag.add' sType='todo'} {/if} |
In controller of edit page, we need to get get tags list of editing item
...
Code Block | ||||
---|---|---|---|---|
| ||||
<!-- Add this code in view template --> {if isset($aItem.tag_list)} {module name='tag.item' sType='todo' sTags=$aItem.tag_list iItemId=$aItem.task_id iUserId=$aItem.user_id sMicroKeywords='keywords'} {/if} |
- To support search by tags, we have to add a callback name:
getTagLink
. This callback will return link to search item by tag of the app. Example:
...
- We also have to implement a page for browsing items by tag. For more detail, please check the source code of the sample app To Do List
Hashtags
Scope
: using for entire site. You can support to add hashtags in description of your items.Related Setting
: Enable Hashtags (tag.enable_hashtag_support) - Enable this option if you wish to allow hashtags on the site to create topics for the item being added.
...
Code Block | ||||
---|---|---|---|---|
| ||||
{$aItem.description|parse} |