Jump to content

Recommended Posts

Posted

I'm guessing this does what I think it does? I ran into a problem where I needed to hide a field to a certain user role (and needed to remove it from 'guest') it then disappeared from the front end. I'm guessing this little toggle allows it still to work on the front end but hide it from the backend? If so this is a GOD SEND of a feature.

 

Screen Shot 2018-07-31 at 22.38.21.png

Posted

I agree that the description is a bit ambiguous, I've been also wondering how to properly interpret it but I came to a similar conclusion, ie. this option  is for "front-end API calls only" meaning where output formatting is ON by default:

Quote: "pages on the front-end of your site always have output formatting on, unless you've turned it off, with $page->of(false)."

Output formatting is always off in a module by default, and the explanation in your screenshot has examples with $page and not $this->page. Also, it is talking about front-end API access checks only. As a result, if it does not affect backend (ie. admin) access checks, then you can use this option for what you are describing, At least I use it that way too ? 

However, maybe others can put together a better explanation than this one of mine ? 

  • Like 1
Posted

Good to know I'm on the right track... and it's doing what I need ?

I think I definitely need to learn more about having output formatting though... always confuses me.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...