Page 1 of 1

lang=0 not working when using cms_selflink dir

Posted: Wed Jan 20, 2021 11:33 am
by Sendlingur
I'm using {cms_selflink dir } in a template to display next/prev links.

The documentation says to get rid of the "Previous page:" and "Next page:" you should use lang=0, but that's not working at all.

Here is what it says in the docs "lang - Display link-labels ("Next Page"/"Previous Page") in different languages (0 for no label.) Danish (dk), English (en) or French (fr), for now."

this how my code looks like

{cms_selflink lang=0 dir='prev' title=''}

I've also used lang="0", lang="fr", lang='0', lang='fr', etc.

Nothing seems to work to get rid of the "Previous page:" and "Next page:".

Any suggestions?

Re: lang=0 not working when using cms_selflink dir

Posted: Wed Jan 20, 2021 2:56 pm
by DIGI3
Use label='', e.g.:

Code: Select all

{cms_selflink dir='prev' label=''}
I've updated the docs site to remove the lang parameter, I think it must have been deprecated some time ago as it's not in the tag help file. For different languages I'm assuming it uses the translation file now.