We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12645
    • 9 Posts
    Quote from: ThaClown at Jul 07, 2011, 03:29 PM

    Here is my structure:

    The call:
    [[!getResources? &resources=`5` &tpl=`chunk_footer_left` &includeTVs=`1` &processTVs=`1` &tvPrefix=``]]

    The tpl chunk (chunk_footer_left):
    [[+tv.footer_content_left]]

    The TV called in the chunk (tv.footer_content_left):
    input: RichText
    output: Default

    In the TV I simply put some HTML content.


    Same here, works fine if its just html but if I nest a snippet inside the template I get nothing.
      • 4172
      • 5,888 Posts
      Quote from: ThaClown at Jul 07, 2011, 03:29 PM

      Here is my structure:

      The call:
      [[!getResources? &resources=`5` &tpl=`chunk_footer_left` &includeTVs=`1` &processTVs=`1` &tvPrefix=``]]

      The tpl chunk (chunk_footer_left):
      [[+tv.footer_content_left]]

      The TV called in the chunk (tv.footer_content_left):
      input: RichText
      output: Default

      In the TV I simply put some HTML content.


      when you’re using
      &tvPrefix=``
      then ->
      [[+footer_content_left]]
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 29597 ☆ A M B ☆
        • 350 Posts
        Nope...
        [[+footer_content_left]]
        does not help...
          MODX Ambassador (NL) | Responsive web design specialist, developer & speaker
          DESIGNfromWITHIN, MPThemes and Any Screen Size
          Follow me on Twitter | Read my blog | My code on GitHub
          • 29597 ☆ A M B ☆
          • 350 Posts
          Just rolled back to 2.1.1-pl and it works again... huh
            MODX Ambassador (NL) | Responsive web design specialist, developer & speaker
            DESIGNfromWITHIN, MPThemes and Any Screen Size
            Follow me on Twitter | Read my blog | My code on GitHub
            • 7243
            • 21 Posts
            can confirm tvs are broken in 2.1.2 all my image tvs no longer work, paths are fine, calls are fine tvs in template are +tv.mytv etc etc, hate to say it guys, and I know I am one of those pain in the arse designers who always complain and moan, but modx updates are really reminding me more and more of drupal updates. The last update to 2.1.1 broke all my tvs as well and had to restructure them, got them to work, but geez guys...

            all packages are up to date but just so it’s not asked for here’s the call:

            [[!getResources? &parents=`10` &limit=`1` &tpl=`leadstory` &includeContent=`0` &showHidden=`1` &tvPrefix=`tv.`&includeTVs=`1` &processTVs=`1`]]

            and the tv in the template:

            [[+tv.ArtPhoto]]

            The core may be fine, but there are some extras that just have to be on top of new updates, wayfinder, getpage, getresources, formit, register, I mean the "core" may be perfect, but what use is it when 99.9% of sites use a certain set of addons for client after client. I mean some packages get updated yet the docs on RTFM aren’t, or there is no mention of major template changes, etc etc etc. Plus being told to file at github or bugs or no answer at all here in the forums, is really exhuasting after spending hours troubleshooting and googling for solutions, this thread came up for googling: "modx 2.1.2 getresources tv" so I am posting.

            Since evo, revo has caused some serious headaches, I always test locally for major updates, but I like to keep my sites tip top to keep the bad guys out, I am already missing evo.
              • 22303 MODX Staff
              • 10,725 Posts
              Can you be more specific about how your image TV’s are "not working", so an appropriate bug ticket is filed and the problem is addressed ASAP. They appear to be working for me in 2.1.1 and 2.1.2 just fine in simple tests.
                • 21395
                • 91 Posts
                See also http://modxcms.com/forums/index.php/topic,66419.msg374500.html#msg374500

                In my case getResources works, but the associated tags made with toLinks and tagLister, apparently well-formed, do not lead to anywhere.

                [Solved] My bit anyway. Nested cached snippet within un-cached chunk - I think. 2.1.2 upgrade revealed error.
                  MODX Revolution 2.6.5-pl (traditional)

                  Hosted on MODX Cloud

                  Skype: nicbaldeagle
                  • 27693
                  • 2 Posts
                  Quote from: OpenGeek at Jul 07, 2011, 02:11 PM

                  I cannot reproduce either issue.

                  Hi OpenGeek, look here: http://bugs.modx.com/issues/5201

                  I’ve got this strange problem that seems related to this topic.
                  In my case getResources uses a chunk that contains a TV and a snippet.
                  The TV is used as parameter for the snippet.
                    • 7243
                    • 21 Posts
                    the image simply don’t show, when looking at the page’s source, the url is correct <img src="/assets/html_code/images/the_image_I_want_shown.jpg" />
                    in 2.1.1 the url is the same, I confirmed by creating a second install of the same site using 2.1.1 and they showed up just fine, the tvs input and output are set correctly but even though the path is correct and the images appear in the backend for the tv in the resource editor, nothing appears in the frontend.
                    I have double checked all paths in the system settings, and made sure they were correct by looking at phpinfo, and confirmed that both the tvs and tinyMCE all navigate the folder tree and are able to set the images, only the images set by the tvs do not appear in the frontend.
                      • 7243
                      • 21 Posts
                      workaround for image based tvs at least is to set an explicit url in the system setting FILE MANAGER URL to: http://site.com/assets/
                      or on localhost http://localhost/sitename/assets/ regardless if the file manager path or url are set to relative or not, the file manager path still needs to be set to /assets/ for tinyMCE and TVs to navigate file tree

                      I am most likely mistaken, but I don’t think this should be necessary should it? I have never needed to set it to http in any previous install of revo or evo,
                      so this may actually not be a getresources error, humble apologies for my meltdown if it is not.

                      also I figure I will simply mention this because it may have some bearing, within a getresources template I have if snippet calls which rely on TV’s if; if the parent is this show this tv...right now in 2.1.1 they work as they should, now with the update, they don’t, only "static" tvs and with the file manager url set as above will work