We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25483
    • 741 Posts
    Can I use UltimateParent with Quill?

    I have this folder structure:

    Root
    - sub1
    --subsub1
    --subsub1
    --subsub1
    - sub2
    --subsub2
    --subsub2
    --subsub2


    I want to assign a TV to the template that get’s sub1 or sub2 as "parent" so that it will only show results from the "head"folder where you are in.
      with regards,

      Ronald Lokers
      'Front-end developer' @ h2o Media

      • 27330
      • 884 Posts
      Urique I think this is one hot snippet that dont get the marketing it needs lol smiley

      I’m using this with eform(FDM) using the ’control’ mode for select TVs and it makes life so much easier.
      Thanks again for sharing this great work.

      Thats another "MUST HAVE" snippet for the list!
        • 31136
        • 72 Posts
        Quote from: MediaGuy at Oct 23, 2008, 03:36 AM

        Can I use UltimateParent with Quill?

        Of course You can!
        Just use it in TV-elements property so:
        @EVAL return $modx->runSnippet("Quill",array('parent'=>$modx->runSnippet("UltimateParent")));
        
          • 31136
          • 72 Posts
          Quote from: sinbad at Oct 22, 2008, 08:14 PM

          is there a way to control the output name of a tag when used in control mode?

          New version 1.0.3 returns control tags with clean name (without tv-addition).
            • 27330
            • 884 Posts
            very cool. maybe next version will allow manipulating the select name? smiley that will be great.
              • 25551 ☆ A M B ☆
              • 1,231 Posts
              I have this working well so far but I have a question about retrieving the selected values for say a check box TV?

              I have a tv called DesignerListings and I am using the checkbox input type. XHTML||CSS||Flash||JavaScript is my values and I’m using delimited list widget with "," as the Delimiter. It works fine, however if I navigate to the page that I set values in, it’s not showing the values from the TVs for that page.

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

              <input type="checkbox" checked="checked" name="tvDesignerListings[]" id="tv_0" value="XHTML"/>

              Thanks!
                Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                AugmentBLU - MODX Partner

                BLUcart - MODX Revolution E-Commerce & Shopping Cart
                • 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?
                Use ’value’ param:
                 [!Quill? &mode=`control` &name=`DesignerListings` &value=`[*DesignerListings*]`!]
                

                In future versions I’will add feature to read default value of control from current page TV value.

                Do not forget that in new version 1.0.3 name of  control generated without ’tv’-prefix!
                  • 25551 ☆ A M B ☆
                  • 1,231 Posts
                  For some reason quill only works with [[]] for me... if I use [!!] I end up seeing the plain text of the snippet....

                  [!Quill? &mode=`control` &name=`DesignerListings` &value=`XHTML,CSS,JavaScript`!]

                  Anyway if I use [[Quill? &mode=`control` &name=`DesignerListings`&value=`[*DesignerListings*]`]] it works... How ever it shows the values only, not checked="". Is there a way to have &checked=`[*DesignerListings*]` display as checked="checked"



                    Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
                    AugmentBLU - MODX Partner

                    BLUcart - MODX Revolution E-Commerce & Shopping Cart
                    • 34017
                    • 898 Posts
                    Seems pretty slick.
                      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
                      • 3232
                      • 380 Posts
                      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'));