We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1441
    • 61 Posts
    @BobRay

    Thanks again for the pointers - but I must be just screwing something up - the PHP warning goes away when I moved things from my ’beta’ context to ’web’ as you suggested, but as in my original post - I can’t scare any data out of a TV. So - for the purpose of demonstration, here’s what I’ve done:

    1. I upgraded. I was using getResources 1.0.0 - I’m now on 1.1.0. (completely removed previous version - installed fresh from the repository)

    2. New Tag:
    [[!getResources? &parents=`78` &processTVs=`1` &tpl=`Test`]]


    3. Chunk ’Test’
    [[+pagetitle]] - [[*tv.test123]]


    4. TV ’test123’ created. Input type set as text. No other properties configured.

    5. Document created under ’78’ - called ’Document One’ TV ’test123’ value set as ’ABC’

    6. Output is literally:
    Document One - 


    The TV still doesn’t render. I’m at a complete loss. Would this have anything to do with my multi-domain plugin? (sets context depending on the domain through which the site is accessed)

    Again, thanks alot for the help. ’Just having all kinds of trouble getting TV’s to work in getResource templates.


      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Shouldn’t that be [[+tv.test123]]?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 3749
        • 24,544 Posts
        Quote from: sottwell at Sep 12, 2010, 12:25 AM

        Shouldn’t that be [[+tv.test123]]?

        Or &tvPrefix=`` in the snippet tag.
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 1441
          • 61 Posts
          Nice! You guys rock. Thanks.

          Turns out I had the TV tag syntax in the &tpl chunk wrong the entire time.

          (it might help - for idiots like me if there was an example in the documentation including a template variable!)



          Unfortunately - the whole story changes again when the page is in any other context than ’web’

          I get some of this for each document: (.../beta/... changes depending on the context - but everything else is the same)
          [2010-09-12 11:57:56] (ERROR @ /home/xxxx/public_html/core/model/modx/modtemplatevar.class.php : 422) PHP warning: DirectoryIterator::__construct(/home/xxxx/public_html/core/model/modx/processors/element/tv/renders/beta/output/) [directoryiterator.--construct]: failed to open dir: No such file or directory 


          Thanks for your patience with me - and if this is a bug, I’d be happy to report it to your tracking system.
            • 1526
            • 72 Posts
            sorry if not the right place to post.
            When invoking
            [[+introtext:default=`[[+content:ellipsis=`400`]]`]]

            I would love the ellipsis to end by … (three dot leader: HTML-Code … or NUM-Code …) instead of the three single dots.
            Thank you.
              MODx evo 1.5~1.6 ✪ Apache v 2.2.22 ✪ PHP v 5.3.10 ✪ MySQL v 5.1.61
              <°'iiii);
              • 22303 MODX Staff
              • 10,725 Posts
              You could enter a ticket to have this changed in the core, or simply create a Snippet you can use as an output filter for this and maybe call it hellip.
                • 28215
                • 4,149 Posts
                  shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                  • 1919
                  • 10 Posts
                  Hi guys...

                  I was using this [[!Ditto? &parents=`1` &tpl=`blog_summary`]]
                  and now I changed it to this [[!getResources &parents=`1` &tpl=`blog_summary` &includeContent=`1`]]
                  and it displays nothing...

                  Any ideas?

                  Thanks in advance smiley
                    • 1778
                    • 659 Posts
                    Quote from: apmartins at Sep 23, 2010, 05:21 PM


                    and now I changed it to this [[!getResources &parents=`1` &tpl=`blog_summary` &includeContent=`1`]]
                    and it displays nothing...

                    Hello !
                    You ommit the question mark in your call... maybe the explanation ?

                    [[!getResources? &parents=`1` &tpl=`blog_summary` &includeContent=`1`]]
                      • 1919
                      • 10 Posts
                      Quote from: anso at Sep 24, 2010, 02:48 AM


                      Hello !
                      You ommit the question mark in your call... maybe the explanation ?

                      [[!getResources? &parents=`1` &tpl=`blog_summary` &includeContent=`1`]]

                      With the question mark I get the same thing... nothing. huh