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

    i’m builing a news section on my site. When i enter the news section i see the latest article.
    In the right column of the newsarticle i list links to the four latest articles and use pagination links.

    Here is how the newslist with the pagination links are defined in the template:

    <h3>Latest news</h3>
    [[Ditto? &startID=`58` &dateFormat=`%d %b %Y` &display=`4` &paginate=`1` &paginateAlwaysShowLinks=`0` &tpl=`nyhetslista_hoger`]]
    <p class="navLinks">[+previous+] [+currentPage+] of [+totalPages+] [+next+]</p>

    And here is the template that renders a link in the list:
    <p>
    <a href="[~[+id+]~]">[+title+]</a>
    <span class="date">[+date+]</span>
    </p>

    My problem is that the &start variable isn’t passed on to the url if i click on a link in the newslist.
    That results in, if i for example navigate to page 2 in the newslist and then click on a article link. The newslist in on page one on the new article page.

    Is it possible to pass on the &start variable on the links in the article list? And then preserve the page you were on in the newslist before you clicked the link.


    /martin