[ic] matching a variable in the userdb

interchange-users@lists.akopia.com interchange-users@lists.akopia.com
Sun May 20 11:37:00 2001


hi list
 
iīve a problem with some minivend syntax.

i have co-ordinated search which iīd like to limit/expand depending on
whether a 
variable exists (or matches)  in the userdb, so itīs basically a stripped
down kind of access-control like thingy.. ( i didnīt want to use aclīs and
seperate pages  for update-simplicity and because of framesets)


My userdb has an extra field, "user_restriction" , with a non-blank value
and the products looks like this

sku   category   display_allways
0001    name     no
0002    name     
0003    name     no

the pulldown search goes thus

<option value="[area 
         	         href=scan
	         search='
  	         se=[box-code]


[if value user_restriction]
        va=se=display_allways
        se=no

[else]
        va=se=category
[/else]
[/if]



 		']">[box-param name]</option>
[/loop]
</select>


it all works fine with a simple [if session logged_in] but the userdb lookup
is posing to be a problem! In the list iīve found these 2 examples neither
of which work

[if data userdb::user_restriction::[data session username]] 
and  [if value user_restriction]

    
thanks for any help!!
alasdair



-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net