We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26931
    • 2,314 Posts
    thanks again!
    I’ve edited my post above to elaborate on what you can do once you have related two pages together. Make sense?
    ...i think i get it now smiley
    Now you will have a checkbox for each department on pages
    those checkboxes will update automatically depending on the documents inside the Departments folder, right?

    ...would i need to create another TV "People" to display the related departments, or will the output be dependend on the folder or template i place it in?
      • 29774
      • 386 Posts

      those checkboxes will update automatically depending on the documents inside the Departments folder, right?

      Yep. Cool eh?


      ...would i need to create another TV "People" to display the related departments, or will the output be dependend on the folder or template i place it in?

      No, you can use ditto as described above to list the related people on the department page, and pass [*department*] to ditto’s ’documents’ parameter on the person page to list the related departments.
        Snippets: GoogleMap | FileDetails | Related Plugin: SSL
        • 26931
        • 2,314 Posts
        aah, okay - great...i think i’ll download and play around with it smiley thanks
          • 4971
          • 964 Posts
          It sounds a little like tvExplorer!

          Have you used both Quill & tvExplorer so we can compare?
            Website: www.mercologia.com
            MODX Revo Tutorials:  www.modxperience.com

            MODX Professional Partner
            • 29774
            • 386 Posts
            Sorry, I’ve not used tvExplorer yet - but I would also be interested in a comparison.
              Snippets: GoogleMap | FileDetails | Related Plugin: SSL
              • 22448
              • 241 Posts
              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.
                • 22448
                • 241 Posts
                since i couldn’t get the Ditto call with tagging to work (see previous post) I tried the following:

                [!Ditto? &documents=`[[Quill? &mode=`field` &tv=`relatedSchools` &value=`[*relatedSchools*]` ]]` !]
                


                And indeed it was successful. Ditto listed the proper documents.

                I’m still curious about why the tagging option did not work though.
                  • 16545
                  • 358 Posts
                  Is it possible to show only Containers and display current document parent directories/containers only?
                    • 10927
                    • 15 Posts
                    this is directed to outre99,

                    I tried doing the ditto call you suggested and still coming up with no documents found
                    [!Ditto? &documents=`[[Quill? &mode=`field` &tv=`relatedSchools` &value=`[*relatedSchools*]` ]]` !]

                    do you have any other suggestions?
                      • 22448
                      • 241 Posts
                      Is there a way to specify multiple documents for the parent parameter? Or alternatively exclude folder documents from what Quill returns?
                      I’m using a checkbox tv to show a list of options but would like to only allow the children documents to be selectable options.

                      Another alternative would be to show all of the document levels in a list but only have checkbox control enable for the leaf documents.

                      Any ideas?