back to my Ditto tests after a few weeks;
to figure out the right TagDelimiter for this, I looked into ditto.class.inc.php:
function fetchKeywords($resource) {
...
$metas = implode(",",$modx->getKeywords($resource["id"]));
...
}
hence &tagDelimiter=`,` should work; but it did not, placeholders
[+keywords+], [+haskeywords+]
, [+tagLinks+] just returned: keywords:, haskeywords:1, tags: None
then I tried &tagData=`
Keywords` (capital K) -> [+keywords+] placeholder got populated correctly, but [+tagLinks+] still returns ’None’
My almost successful Ditto call is:
[[Ditto?parents=`13` &extenders=`summary,dateFilter,tagging,request` &filter=`DittoFilter,dynSpotLight,7` &keywords=`1` &tagData=`Keywords` &tagDelimiter=`,` &tagDocumentID=`495` &tpl=`DittoSpotlightTests`]]
HELP! anyone has a working example?
I tried looking into tagging.extender.inc.php but got lost.
I added/removed &givenTags=`[+keywords+]`&caseSensitive=`1` without any effects.
Checking the debug (attached) one discovers that:
- both keywords and Keywords are defined in ’Fields->Display->Unknown’
- ’Prefetch Data’ displays empty fields for keywords
- ’Retrieved Data’ displays the correct Modx keywords