This topic is locked

{if $allow_variety} question

1/23/2008 10:44:37 PM
PHPRunner General questions
H
horsey_kim author

Can't I use {if $allow_variety}<a href="variety_list.php">{/if} in my page code for having what is in between only show up for those who have permission to view that code? Or is there something special I need to do.
I have some links that I want only to show up on the page depending on what the person has access to.
I hope this makes sense.
situation admin level has access to the variety list page. But I did not want that page to be displayed in the menu only via link. I have other levels that would see a different page that the admin.
Kim

J
Jane 1/24/2008

Kim,
you can edit your pages as you want on the Visual Editor tab -> HTML mode.

H
horsey_kim author 1/24/2008

didn't work

H
horsey_kim author 2/4/2008

QUESTION UPDATED
Jane, I did edit in html mode and put the code in and it did not work.
So I guess my questions are these then:
Is this code {if $allow_variety}<a href="variety_list.php">{/if}, when inserted via html, going to show up only for those who have been set to have access to that page thru the permissions screen?
And if they do will it only allow them to edit, add or such based on what they are assigned via permissions screen?
I have tried this via the html editor and it did not work. BUT I did not have "Create menu Item" checked in the database source screen. Because I don't want it on the main menu - I want to use it as a link later in the page. Does the "create menu item" have to be checked in order for that code to function? Maybe that is my problem?
Kim

J
Jane 2/4/2008

Kim,
yes, you need to setup permissions for variety table on the User group permissions dialog on the Security tab to use {$allow_variety} variable.
You can publish your project on Demo Account and send to [email=support@xlinesoft.com]support@xlinesoft.com[/email] a URL to your pages along with instructions on reproducing this error.

I'll find what's wrong with your project inspecting it at Demo account site.