Quote from: therebechips at Oct 08, 2009, 03:54 AM
@charliez, @ChuckTrukk
So you will now be able to assign each ’person’ to one or more ’departments’.
How to output the relationships on your website frontend? Use a Ditto tagging call. For example, to list people in a particular department in the department template add:
[!Ditto? &parents=`40` &depth=`1` &display=`all` &tagData=`department` &tagMode=`onlyTags` &tagDelimiter=`,` &tags=`*id*` &sortBy=`pagetitle` &sortDir=`ASC` &tpl=`deptTpl`!]
(where ’40’ is the id of the ’people’ document folder).
@therebechips or @yurik
hey gents,
been following your examples but just can’t get it to work completely.
I setup the tv as instructed and it works in the manager perfectly. I see nice check boxes for each school. I can also output the value of the tv in all 3 modes.
Here’s the output in field mode: "Anglo Singapore IS,Australian IS"
And here’s the list mode: "Anglo Singapore IS==92||Australian IS==93"
The problem is that Ditto call returns "Documents not found" regardless of what i try.
so in the Ditto call i got
[!Ditto? &parents=`48` &depth=`3` &display=`all` &tagData=`relatedSchools` &tagMode=`onlyTags` &tagDelimiter=`,` &tags=`*id*` &sortBy=`pagetitle` &sortDir=`ASC` !]
Based on your example above i’m assuming that &tagDate=’relatedSchools’ returns values in the field mode since list mode will not work. if not how do i force the use of the field mode. i tried to do the following but with the same result "No documents found"
&tagData=`[[Quill? &mode=`field` &tv=`relatedSchools`]]`
thanks in advance.