We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36818
    • 119 Posts
    Hi there,

    I'm made a getResources-call as
     [[!getResources?
    		  &parents=`10`
    		  &tplWrapper=`clTeamOuterTpl`
    		  &tpl=`clMedienpoolOutputTpl`
    		  &showHidden=`1`
    		  &showUnpublished=`0`
    		  &limit=`0`
    		  &includeTVs=`1` 
    		]]


    &tplWrapper is something like
     <div class="medien medien-team collapse" id="team-[[+alias]]">
    	[[+output]]
      </div>


    But there is no output for the placeholder
    [[+alias]]
    nor any other placeholder at all. Aren't they available in the wrapper-template? In the
    &tpl
    they're working flawlessly.

    Thanks for any hints.
    Fabian

    This question has been answered by multiple community members. See the first response.

    • discuss.answer
      • 50012
      • 12 Posts
      Hi achterbahn,

      inside the "tplWrapper" chunk is no element-placeholder available because it is just wrapping all the elements. The placeholders are available for each element inside the "tpl" chunk. If you want the alias of the current page ... just use [[*alias]].

      Best regards
      Jan
        • 36818
        • 119 Posts
        Thanks, quadro!

        Ok, good to know. Then I have to nest two gR-calls. As I can not use [[*alias]] because it will always give me the alias of the &parents parameter (i.e. 10 in my example).

        Best regards.
        • discuss.answer
          • 13428 ☆ A M B ☆
          • 1,031 Posts
          Try &alias=`[[+alias]]` as parameter. According to this line, it has to work.
          [ed. note: Jako last edited this post 10 years, 11 months ago.]
            • 36818
            • 119 Posts
            Yeah! That did the trick!
            Thanks a lot, Jako!

            Quote from: Jako at Oct 29, 2015, 03:36 AM
            Try &alias=`[[+alias]]` as parameter. According to this line, it has to work.