Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
actionscript3
actionscript3
{if Phpfox::isModule('tag') && Phpfox::getParam('tag.enable_tag_support')}
    {module name='tag.add' sType='todo'}
{/if}

Image RemovedImage Added

In controller of edit page, we need to get get tags list of editing item

...

Code Block
actionscript3
actionscript3
<!-- 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}

Image RemovedImage Added

  • 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

Image RemovedImage Added

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
actionscript3
actionscript3
{$aItem.description|parse}

Image RemovedImage Added