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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
tkemmere
Forum Members
Forum Members
Posts: 33
Joined: Fri Aug 11, 2006 1:00 pm

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

Post 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.
Last edited by tkemmere on Sun May 02, 2010 4:14 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post by Dr.CSS »

Please file a bug report in forge...
tkemmere
Forum Members
Forum Members
Posts: 33
Joined: Fri Aug 11, 2006 1:00 pm

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

Post by tkemmere »

Will do.
Regards.
Post Reply

Return to “CMSMS Core”