In the edit.tpl, you can hide a link. The template simply has < select name="hide" >{ LINKHIDESELECTOR }< /select > in it, which calls up a yes/no dropdown list. Where can I change the actual words 'yes' and 'no'?? I looked in the php files and the admin panel, but can't figure this out.
I tried to convert the above list to an actual drop down list of my own, but I don't understand the Name and Value of this whole hidden link. What would be the manual drop down list version of this LINKHIDESELECTOR variable? Would it be
name="hide" value="1" and name="hide" value="0" OR name="hide" value="yes" and name="hide" value="no" OR the above ones, but with name="linkhide" value="yes" and name="linkhide" value="no"
ALSO, in this case, how would I do the automatic SELECT in the options? I was trying something like: name="hide" value="1" < IF { THISLINKISHIDDEN} >selected< /IF > AND TRIED name="hide" value="1" < IF { LINKISHIDDEN} >selected< /IF > AND TRIED name="hide" value="1" < IF { LINKHIDE} is 1>selected< /IF > AND TRIED name="hide" value="1" < IF { LINKISHIDE} yes>selected< /IF >
But none of them seem to do their job. What is THE correct variable to use, if I want to display something based on the fact that a link is hidden/non-hidden?
'yes' and 'no' as displayed are language items, as actual values hard-coded.
As you can see by clicking 'view source' in your web browser, the values in the selector are yes and no.
Please check the link variables at scripts.webmastersite.net/w...inks/wsnmanual/articles/10 , that's what the manual is for and I just have to look it up myself as I don't memorize such things. It says there "{LINKHIDE} - 0 if link is hidden, 1 is visible." So <IF {LINKHIDE}>hidden<ELSE>visible</IF>
Though I have no idea what you mean by "automatic select" or why it would involve conditionals.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on where is how to use
Forum Regular
Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 91
Total Comments: 305
Hey Paul,
Got something that I can't find / figure out.
In the edit.tpl, you can hide a link. The template simply has < select name="hide" >{ LINKHIDESELECTOR }< /select > in it, which calls up a yes/no dropdown list. Where can I change the actual words 'yes' and 'no'?? I looked in the php files and the admin panel, but can't figure this out.
I tried to convert the above list to an actual drop down list of my own, but I don't understand the Name and Value of this whole hidden link. What would be the manual drop down list version of this LINKHIDESELECTOR variable? Would it be
name="hide" value="1" and name="hide" value="0"
OR
name="hide" value="yes" and name="hide" value="no"
OR the above ones, but with
name="linkhide" value="yes" and name="linkhide" value="no"
ALSO, in this case, how would I do the automatic SELECT in the options? I was trying something like:
name="hide" value="1" < IF { THISLINKISHIDDEN} >selected< /IF >
AND TRIED
name="hide" value="1" < IF { LINKISHIDDEN} >selected< /IF >
AND TRIED
name="hide" value="1" < IF { LINKHIDE} is 1>selected< /IF >
AND TRIED
name="hide" value="1" < IF { LINKISHIDE} yes>selected< /IF >
But none of them seem to do their job. What is THE correct variable to use, if I want to display something based on the fact that a link is hidden/non-hidden?
THanks
David
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
'yes' and 'no' as displayed are language items, as actual values hard-coded.
As you can see by clicking 'view source' in your web browser, the values in the selector are yes and no.
Please check the link variables at scripts.webmastersite.net/w...inks/wsnmanual/articles/10 , that's what the manual is for and I just have to look it up myself as I don't memorize such things. It says there "{LINKHIDE} - 0 if link is hidden, 1 is visible." So <IF {LINKHIDE}>hidden<ELSE>visible</IF>
Though I have no idea what you mean by "automatic select" or why it would involve conditionals.