We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 48586
    • 78 Posts
    I am having a hard time wrapping my head around Tagger, and I can't find any good examples online of how to implement. In the most basic example, my resource tree looks like:

    Articles (84)
      - Story #1 about something (102)
      - Story #2 about something (104)
      - etc..


    "Articles" is my landing page resource. On that resource I have:

    [[!getResources? &tpl=`insights_article` &parents=`84` &limit=`100` &where=`[[!TaggerGetResourcesWhere? &tags=`internet`]]`]]


    My insights_article chunk looks like:

    <div class="item -newsletter">
        <div class="inner">
          <a href="[[~[[*id]]]]" class="image" style="background-image: url(http://lorempixel.com/445/305/people/6);"></a>
          <div class="info">
            <div class="title">
              <div class="label"></div>
              <a href="[[~[[*id]]]]"><h6>[[*pagetitle]]</h6></a>
            </div>
            <div class="excerpt">
              <div class="text">
                [[*description]]
              </div>
            </div>
          </div>
        </div>
    </div>


    What I would like to see displayed (very basic) is something like:

    Story #1 about something
    A brief description from the resource

    Story #2 about something
    A brief description from the resource

    Instead, what I am getting is:

    Articles

    Articles

    I'm pretty sure there has to be a [[!TaggerGetTags? &......]] in here somewhere, but I can't find any good examples of placement or how that works.

    Can someone please help, thank you very much

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

    • discuss.answer
      • 4172
      • 5,888 Posts
      you have to use placeholder-tags inside the tpl-chunk, like:

      <div class="item -newsletter">
          <div class="inner">
            <a href="[[~[[+id]]]]" class="image" style="background-image: url(http://lorempixel.com/445/305/people/6);"></a>
            <div class="info">
              <div class="title">
                <div class="label"></div>
                <a href="[[~[[+id]]]]"><h6>[[+pagetitle]]</h6></a>
              </div>
              <div class="excerpt">
                <div class="text">
                  [[+description]]
                </div>
              </div>
            </div>
          </div>
      </div>
      


      with tags like
      [[*id]]
      and
      [[*pagetitle]]
      , you will allways get the values of the current resource, this is the articles-resource in this case
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 48586
        • 78 Posts
        Thank you @Bruno17! I can't believe I missed that, it is working perfectly now, and I even got pagination with getPage to work correctly