We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31136
    • 72 Posts
    Quote from: betoranaldi at Nov 28, 2008, 09:03 AM

    How would one go about using this to display a dropdown in the manager for all children of the current document.

    I have tried the following with no luck:

    @EVAL return $modx->runSnippet("Quill", array('parent'=>$modx->documentIdentifier, 'title'=>'pagetitle', 'mode'=>'list', 'default'=>' ', 'depth'=>'2'));


    $modx->documentIdentifier works just in frontend!
    I need a time to add support of this functionality. And now I have no free time to do this.
    Wait 4 new versions in future.
      • 31136
      • 72 Posts
      Quote from: rossco at Nov 11, 2008, 03:26 PM

      How could I get checked info through to my document so it shows which value was previously chosen?

      Just update to new 1.0.4 version! Delimited list output by widget for checkbox TVs now supported too.
        • 34017
        • 898 Posts
        Could someone explain how you use Quill? Maybe a simple use-case scenario.

        Thanks,
        Chuck
          Chuck the Trukk
          ProWebscape.com :: Nashville-WebDesign.com
          - - - - - - - -
          What are TV's? Here's some info below.
          http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
          http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
          • 25551 ☆ A M B ☆
          • 1,231 Posts
          Quote from: Urique at Dec 28, 2008, 02:25 AM

          Quote from: rossco at Nov 11, 2008, 03:26 PM

          How could I get checked info through to my document so it shows which value was previously chosen?

          Just update to new 1.0.4 version! Delimited list output by widget for checkbox TVs now supported too.

          Thanks a lot! I’ll check it out over the next day or so as I have been nice to myself and been on holiday lol. Great Snippet!
            Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
            AugmentBLU - MODX Partner

            BLUcart - MODX Revolution E-Commerce & Shopping Cart
            • 16903
            • 39 Posts
            Aloa,

            i’m looking for a documentation or some tutorials.

            Thanks in advance.

            See’ya
            Leif
              • 28008
              • 23 Posts
              Hi,

              I’ve been using Quill a couple of times now, but seem to be having the same problem every time. I’ll write down an example:

              I have a Template Variable:

              [table][tr][td]Variable Name[/td][td] : [/td][td]var_test[/td][/tr][tr][td]Input Type[/td][td] : [/td][td]Radio Options[/td][/tr][tr][td]Input Option Values[/td][td] : [/td][td]@EVAL return $modx->runSnippet("Quill",array(’parent’=>’0’));[/td][/tr][tr][td]Template Access[/td][td] : [/td][td]template 1[/td][/tr][/table]

              When I create a new document in the manager and choose template "template 1", everything works fine. I get a nice list of radio options. Now I want to show the selected option in the front-end. When I use [*var_test*] in "template 1" or [+var_test+] in for example a Wayfinder chunk, I won’t see the corresponding pagetitle of the radio option I selected, but will see the ID of that document. I’ve tried to use something like [[Quill? &mode=`field` &tv=`var_test` &value=`[+var_test+]` ]] instead, but still will see the ID and not the pagetitle.

              In other words: I see the value of the selected radio option instead of it’s description. Is there a way I can use a Quill call that will return the description as output instead of the value?

              At the moment I just write my own snippet that will return a pagetitle of a given document ID.


                For those about to rock... I salute you
                • 4971
                • 964 Posts
                Can someboy explain what Quill does, maybe with an example?
                As I can understand, it kinda inherits TVs to the children of
                a doc using a template... is that right?
                Thanks...
                  Website: www.mercologia.com
                  MODX Revo Tutorials:  www.modxperience.com

                  MODX Professional Partner
                  • 29774
                  • 386 Posts
                  @charliez, @ChuckTrukk

                  Simple example:

                  * Create folders in the site tree with your two sets of items, eg ’Departments’ and ’People’
                  * Create a ’person’ template and a ’department’ template
                  * Fill the ’Department’ folder and the ’People’ folder with documents based on the appropriate template
                  * Create a new TV called ’department’:
                  - Input Type: use Check Box (can also be DropDown List Menu or Listbox)
                  - Input Option Values:

                  @EVAL return $modx->runSnippet('Quill', array("parent"=>"4"));
                  


                  (replace the ’4’ with the actual document id of the ’Department’ folder)
                  - Delimiter: ,
                  - Assign the TV to the People template
                  * Now you will have a checkbox for each department on pages based on the ’Person’ template

                  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).

                    Snippets: GoogleMap | FileDetails | Related Plugin: SSL
                    • 26931
                    • 2,314 Posts
                    Hi therebechips,

                    thanks for the explanation

                    * Now you will have a checkbox for each department on pages based on the ’Person’ template
                    but, what’s the point of that checkbox? ...i don’t get the concept of Quill neither rolleyes smiley
                      • 29774
                      • 386 Posts
                      Sharkbait - I’ve edited my post above to elaborate on what you can do once you have related two pages together. Make sense?

                      The point of Quill is to create one-to-many, many-to-many and reciprocal relationships between modx documents. This is much the same as a snippet I wrote a while ago called Related; but I would encourage you to use Quill instead since it supports the generation of form elements on the front end as well as the back end (very useful for custom search/filter forms).

                      Quill is one of the most useful snippets for modx - a hidden (and misunderstood) gem - in my humble opinion.
                        Snippets: GoogleMap | FileDetails | Related Plugin: SSL