The first one is not correct, previous not prev, the next is ok except the last part after }, read the tags Help page for a better understanding of what it does...
Or look at some of the default templates...
cms selflink - dir='next' and 'prev' [solved-ish]
Re: cms selflink - possible bug with dir='next' and 'previou
I addedjohnboyuk wrote:but neither are working correctly for me ... has anyone tried these in the latest version of cmsms?
Code: Select all
{cms_selflink dir='prev' text='prev'}
{cms_selflink dir='next' text='next'}
Where are you adding your tags (Page or Template (head or body))? And when you say "neither are working correctly for me" what HTML is produced?
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
Re: cms selflink - dir='next' and 'prev' [solved-ish]
You're welcome.
One solution to that is making the pages show in menu but changing your menu template to ignore them - like this which hides page "aboutus" (untested code):
One solution to that is making the pages show in menu but changing your menu template to ignore them - like this which hides page "aboutus" (untested code):
Code: Select all
{foreach from=$nodelist item=node}
{if $node->alias != "aboutus"}
...all the existing code here...
{/if}
{/foreach}
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016