We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6671
    • 5 Posts
    I've been banging my head agains the wall for 4hrs now trying to figure this out. :-( So I turn to you all. smiley
    (I'm fairly new to modx, so please excuse any of my ignorance if it shows.)

    I've got a setup like this: http://davelilly.d.pr/Moue

    My page template variables look like this: http://davelilly.d.pr/1c4Ee

    I have this in my homepage template:
    [[!getResources?
    &parents='2'
    &depth='1'
    &limit='3'
    &tpl='greyHighlites'
    &includeContent='1'
    &includeTVs='1'
    &processTVs='1'
    &showHidden='1'
    &sortby='menuindex'
    &sortdir='ASC'
    ]]



    And this is my greyHighlites chunk:
    <div class="4u 12u(mobile)">
    <section class="highlight">
    <a href="[[~[[+id]]]]" class="image featured"><img src="[[+tv.highliteImage]]" alt="" /></a>
    <h3><a href="#">[[+pagetitle]]</a></h3>
    <p>[[+content]]</p>
    <ul class="actions">
    <li><a href="[[~[[+id]]]]" class="button style1">Learn More</a></li>
    </ul>

    </section>
    </div>

    I am at a complete loss. Am I doing something wrong?
    Can anyone help me?

    Thanks in advance!
    Dave

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

    • discuss.answer
      • 22840
      • 1,572 Posts
      Firstly you should be using back ticks not single quotes
      [[!getResources?
      &parents=`2`
      &depth=`1`
      &limit=`3`
      &tpl=`greyHighlites`
      &includeContent=`1`
      &includeTVs=`1`
      &processTVs=`1`
      &showHidden=`1`
      &sortby=`menuindex`
      &sortdir=`ASC`
      ]]


      Also make sure id 2 is published
        • 6671
        • 5 Posts
        THANK YOU SO MUCH!!! The tut I was watching didn't specify that those were not single quotes! You're the man!