We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14437
    • 31 Posts
    I'm making a slider with Coda Slider 2.0 and getResources.
    For the slide navigation I need a custom 'hard-coded' list of links which point to the corresponding slide.

    At the moment I have 2 snippets: the first to generate the divs containing the slides, the second for thumbnails / navigation.

    The thumbnails should link to #1, #2, #3 and so on:

    Like this:
    <li class="tab1"><a href="#1">Panel 1</a></li>
    <li class="tab2"><a href="#2">Panel 2</a></li>

    Current Tpl:

    <li>
    <a href="#NUMBER" ><img src="[[+tv.newsImg:phpthumbof=`w=176&h=90&zc=1`]]" alt="[[+pagetitle]]" />
    <br class="clear">
    <span><h2>[[+pagetitle]]</h2></span></a>
    </li>


    Is there way to do this with getResources? Something like &rowIdPrefix in wayfinder, only not for the Id but for an a href in the Tpl [ed. note: JoeriVos last edited this post 15 years, 1 month ago.]
      • 14437
      • 31 Posts
      For now I'm using the &tpl_4=`tpl4th`variable.
      I need the latest six resources, so thats 6 tpl chunks.. smiley

      Ok for now, but can be smarter right...
        • 12028
        • 152 Posts
        You can also use
        &idx=`1`

        - in your snippet call, and output it with:
        <li><a href="#[[+idx]]">Panel 1</a></li>

        in your template.
          - A small step for mankind, so why not take two...

          Working with web production, graphic design/workflow, photo and education - but are trying to get a life in between!
          • 14437
          • 31 Posts
          That does the job!
          Thanks for helping out!

          -SOLVED-