Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter fgsfalco

    (@fgsfalco)

    Okay I’m a little closer to achieving what I need which is for only certain logged in users to be able to edit a table.

    With these shortcodes on the same page both logged out viewers and logged in with “site-admin” role see the csv table twice.

    [fileaway_values filename=”Phone-list.csv” showto=”site-admin” editor=”true” theme=”silver-bullet”]

    [fileaway_values filename=”Phone-list.csv” hidefrom=”site-admin” theme=”greymatter”]

    Both instances are editable. Am I missing an attribute?

    Thanks!

    Plugin Author thomstark

    (@thomstark)

    Are you sure the role is “site-admin” and not “site_admin” with an underscore?

    Plugin Author thomstark

    (@thomstark)

    I created a role called site-admin, copied your shortcodes exactly, created a csv by that name, logged-in as site admin. I’m only seeing one.

    Thread Starter fgsfalco

    (@fgsfalco)

    Okay now I see only the one editable silver-bullet version when logged in as a user with the “site-admin” role. Great! Whoever when logged out I get the same results showing silver-bullet version with edit capabilities. no gooda! I want to hide that one and show the “greymatter” version non editable.

    So is it that the “hidefrom” attribute is only applied when logged in?

    I’m going to try to achieve my desired functionality using your “Eyes Only: User Access Shortcode” plugin.

    Plugin Author thomstark

    (@thomstark)

    Eyes Only is a good fallback.

    However, if either hidefrom or showto is used, it should only be showing to logged-in users regardless. It’s working correctly for me.

    Thread Starter fgsfalco

    (@fgsfalco)

    Okay this works!

    [eyesonly logged=”out”][fileaway_values filename=”Phone-list.csv” theme=”greymatter”][/eyesonly]

    [eyesonly level=”site-admin”][fileaway_values filename=”Phone-list.csv” showto=”site-admin” editor=”true” theme=”silver-bullet”][/eyesonly]

    Thanks for taking time to look into this. If you want I can send you login information to this dev site so you can confirm if I’m crazy or I have a conflict of some sort? Or both?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘CSV Editor Mode’ is closed to new replies.