We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28121
    • 107 Posts
    Hope I can explain this well enough to get an answer...

    I have managed to pull in a list of Partners onto my Partner Overview page
    using the following call which calls a Partner_Profile chunk.

    [[!getResourcesTag?
    &elementClass=`modSnippet`
    &element=`getResources`
    &tpl=`Partner_Profile`
    &parents=`78`
    &includeContent=`1`
    &includeTVs=`1`
    &showHidden=`1`
    &hideContainers=`1`
    &cache=`0`
    &pageVarKey=`page` ]]

    My actual Chunk mentioned above in bold is as follows.


    • <table width="600" border="0" cellspacing="1" cellpadding="5">
      <tr>
      <td width="156" height="85" align="left" valign="top" bgcolor="#F7F6F1">[[*Partner_Logo]]</td>
      <td width="421" height="85" align="left" valign="top" bgcolor="#F7F6F1">
      <h2><a href="[[~[[+id]]]]">[[+pagetitle]]</a></h2>
      [[+content]]</td>
      </tr>
      </table>
      <hr style="color: #fff; background-color: #fff; border: 1px dotted; border-style: none none dotted; border-color: #999;"/>

    My problem is getting a Template Variable called Partner_Logo to work. See, each Partner has a logo which in the Partner Template is a Template Variable. I’m not sure how to call it above as I am essentially hacking a tutorial I found for creating blogs on this page
    http://rtfm.modx.com/display/revolution20/Creating+a+Blog+in+MODx+Revolution

    Thanks again guys/gals

      • 28121
      • 107 Posts
      I did a bit of digging around and found I needed to use this on the TV in question.

      [[+tv.Partner_Logo]]

      This post also helped
      http://modxcms.com/forums/index.php/topic,54862.0.html
        • 11155
        • 74 Posts
        You should also be able to change the prefix (tv.) in the properties of GetResources snippet, if needed.