We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12990
    • 6 Posts
    i have the following code for getresources, which i call from a template:

    [[!getResources? &parents`[[*id]]` &includeTVs=`1` &processTVs=`1` &limit=`30` &sortbyTV=`Projektnummer` &sortdirTV=`DESC` &tpl=`cardTpl`]]


    and my cardTpl looks like this:

    <div class="entry" id="[[+alias?]]" >
    
              <div class="wrapper">
                <div class="proj_entry_title">
                  <p>[[+tv.projectName?]]</p>
                  <h2>[[+tv.ProjectSub?]]</h2>
                </div>
                <div class="entry_image"> [[+tv.projectCardImg]]</div>
              </div>
         
       </div>


    getresources seems to get the right resources, displays them correctly with cardTpl, names the entries correctly with the alias, but does not include any TVs. i don’t see the variables, it’s all empty.
    i don’t get it. everything seems to be correct. what am i doing wrong? please help!
      • 12990
      • 6 Posts
      i still don’t know exactly why, but i solved it. maybe adding the prefix param was the solution

      &tvPrefix=`tv.`


      hmmm
      most important: it works.