Page 1 of 1

Hide lables: lang=0 versus lang="0" in cms_selflink

Posted: Sun May 02, 2010 3:44 pm
by tkemmere
This is not a question, just a problem I come across, looked for in the help, then the forum and then managed to solve.
I was struggleing to make the textlabels invisible in de cms_selflink tag. (Bonde 1.6.6).

I had this:

Code: Select all

{cms_selflink dir="previous" image="uploads/images/design/previous.gif" imageonly=1} {cms_selflink dir="next" image="uploads/images/design/next.gif" imageonly=1}
And then added...

Code: Select all

lang=0
...one within each tag.

I found this info on:
- Admin panel;
- Tags
- Extentions;
- Help for the cms_selflink tag
- What parameters does it take?

I put no quotes as imageonly doesn't take them either ans it says lang=0. See example in 4th line from the bottom, under "What parameters does it take?"

I got Forrige side: Næste side:. (I have no idea which language that is!)

Then I duck into http://forum.cmsmadesimple.org/index.php/topic,15129.0.html

I tried

Code: Select all

<a href="{cms_selflink dir='previous'}>"<img src="uploads/images/design/previous.gif">xx</a> <a href="{cms_selflink dir='next'}"><img src="uploads/images/design/next.gif">xx</a>
But that gave me: prev-page-title">xx image next-page-title">xx image.

Then I discovered that

Code: Select all

lang="0"
Should be used!!!

Conclusion / My point: lang=0 and lang="0" are not the same. The latter should be used.

It could be argued that the cms_selflink-help-page is confusing/misleading, due to:
1) the limited number of examples;
2) the only example with 0/1 being one with no quotes. (imageonly).;
3) is says "lang=0" on that same line.

Re: Hide lables: lang=0 versus lang="0" in cms_selflink

Posted: Sun May 02, 2010 6:25 pm
by Dr.CSS
Please file a bug report in forge...

Re: Hide lables: lang=0 versus lang="0" in cms_selflink

Posted: Sun May 09, 2010 7:42 am
by tkemmere
Will do.
Regards.