Page 1 of 1

Using {anchor} in news module detail template

Posted: Wed Oct 16, 2019 10:37 am
by Sendlingur
In my news detail template I've an "slidebar" which contains links to various sections in the news detail template.

I've been spending lots of time to get the {anchor} tag to work.
But the link always goes to the this path (https://mypage.com/index.php?page=mainpage#section03) but never goes to corresponding section of the news template page.


I've also tried to wrap the anchor in a {selflink} but with no results.

here is what I've got so far. Can some one guide me on this?

Code: Select all

<li><a href="{cms_selflink anchorlink='section03'}">{$entry->title}</a></li>
<li>{anchor anchor='section03' accesskey='s' text={$entry->title}}</li>