Collection of parameters, functions, and classes that expand Ditto’s functionality to include tagging
| Tagging | Collection of parameters, functions, and classes that expand Ditto’s functionality to include tagging |
| Parameters | |
| tagDocumentID | ID for tag links to point to |
| tagData | Field to get the tags from |
| caseSensitive | Determine whether or not tag matching and duplicate tag removal are case sensitive |
| tagMode | Filtering method to remove tags |
| tagDelimiter | Delimiter that splits each tag in the tagData source |
| tagDisplayDelimiter | What separates the tags in [+tagLinks+] |
| tagSort | Sort the tags alphanumerically |
| tagDisplayMode | How to display the tags in [+tagLinks+] |
| tags | Allow the user to provide initial tags to be filtered |
| tplTagLinks | Define a custom template for the tagLinks placeholder |
| tagCallback | Allow the user to modify both where the tags come from and how they are parsed. |
| Placeholders | |
| tagLinks | Nice ‘n beautiful tag list with links pointing to tagDocumentID |
| tags | Raw tags separated by tagDelimiter |
ID for tag links to point to
Any MODx document with a Ditto call setup to receive the tags
Current MODx Document
Field to get the tags from
Comma separated list of MODx fields or TVs
[NULL]
Determine whether or not tag matching and duplicate tag removal are case sensitive
| 0 | off |
| 1 | on |
| 0 | off |
Filtering method to remove tags
| onlyAllTags | show documents that have all of the tags |
| onlyTags | show documents that have any of the tags |
| removeAllTags | remove documents that have all of the tags |
| removeTags | documents that have any of the tags |
”onlyTags”
Delimiter that splits each tag in the tagData source
Any character not included in the tags themselves
| ” “ | space |
What separates the tags in [+tagLinks+]
Any character
&tagDelimiter
How to display the tags in [+tagLinks+]
| 1 | string of links &tagDisplayDelimiter separated |
| 2 | ul/li list |
Output of individual items can be customized by tplTagLinks
| 1 | string of links &tagDisplayDelimiter separated |
Allow the user to provide initial tags to be filtered
Any valid tags separated by tagDelimiter
[NULL]
Define a custom template for the tagLinks placeholder
<a href="[+url+]" class="ditto_tag" rel="tag">[+tag+]</a>
Allow the user to modify both where the tags come from and how they are parsed.
Any valid function name
[NULL]
The function should expect to receive the following three parameters: tagData - the provided source of the tags resource - the resource array for the document being parsed array - return the results in an array if true
Nice ‘n beautiful tag list with links pointing to tagDocumentID
Raw tags separated by tagDelimiter