We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8168
    • 1,118 Posts
    Very odd one here... never experienced it before...

    If I add in a simple getResources call to my page template (as below), to call in the docs placed in resource ID 8, the docs are not called in, and MODx renders the page very badly - ignoring all code in the template placed above the getResources call!!!????!!! Any ideas why??

    [[!getResources? &parents=`8` &tpl=`ITEM_Tpl` &limit=`1` &includeTVs=`1` &processTVs=`1` &tvPrefix=`` ]]


    Tpl chunk code is

    <div class="burgerItemWrapper">
    <div class="burgerItemInner">
    <div class="burgerIcon"><img src="[[+MENU_BurgerItem_Icon]]" alt="[[+MENU_BurgerItem_Name]] title="[[+MENU_BurgerItem_Name]]"></div>
    <div class="burgerDeets"><h3>[[+MENU_BurgerItem_Name]]</h3><p>[[+MENU_BurgerItem_Description]]</p><p class="price">[[+MENU_BurgerItem_Price]]</p>
    </div>
    </div>
    </div>


    Running Revo 2.3.3 and getResources version 1.6.1-pl

    This question has been answered by dubbs. See the first response.

      • 22840
      • 1,572 Posts
      Your not closing the alt for the icon

      Try:
      <div class="burgerItemWrapper">
      <div class="burgerItemInner">
      <div class="burgerIcon"><img src="[[+MENU_BurgerItem_Icon]]" alt="[[+MENU_BurgerItem_Name]]" title="[[+MENU_BurgerItem_Name]]"></div>
      <div class="burgerDeets"><h3>[[+MENU_BurgerItem_Name]]</h3><p>[[+MENU_BurgerItem_Description]]</p><p class="price">[[+MENU_BurgerItem_Price]]</p>
      </div>
      </div>
      </div>
        • 8168
        • 1,118 Posts
        Quote from: paulp at Feb 24, 2015, 03:12 PM
        Your not closing the alt for the icon

        Try:
        <div class="burgerItemWrapper">
        <div class="burgerItemInner">
        <div class="burgerIcon"><img src="[[+MENU_BurgerItem_Icon]]" alt="[[+MENU_BurgerItem_Name]]" title="[[+MENU_BurgerItem_Name]]"></div>
        <div class="burgerDeets"><h3>[[+MENU_BurgerItem_Name]]</h3><p>[[+MENU_BurgerItem_Description]]</p><p class="price">[[+MENU_BurgerItem_Price]]</p>
        </div>
        </div>
        </div>

        Yeh, fixed that but still have same issues... its really odd. I can make the getResources call on a new blank page and it works... but when I call it from the page I need to... it breaks the page!!!
          • 22840
          • 1,572 Posts
          Whats the actual template code as that shouldn't break anything from what I can see, also are you putting the get resources code in the template or wysiwyg for the page content ?
          • discuss.answer
            • 8168
            • 1,118 Posts
            Found the issue.... had a TV call in a Chunk call for the head code with a missing 2nd ] - page rendered fine until getResources wanted to do its thing... then all fell over! Good learning! Thanks for your offer of assistance Paul