eydun Posted April 4, 2023 Share Posted April 4, 2023 When building various templates such as webpages (or something else), do you usually add an additional boolean-field to be able to toggle the page to be "active" or not? Or do you just use the built-in "Publish/Unpublish" status-field to control if the page should be active/visible? I know it depends on the use-case, so this question is meant in general-terms best-practices how to use the status-field. Link to comment Share on other sites More sharing options...
gebeer Posted April 4, 2023 Share Posted April 4, 2023 The status can be used as active toggle. But, as you said, this highly depends on the use case. I have several sites where a separate 'active' checkbox field is required because in PageLister (like Pages->Find) those pages should appear for user roles other than superuser and not be striked-through. Link to comment Share on other sites More sharing options...
eydun Posted April 4, 2023 Author Share Posted April 4, 2023 Thanks for the reply. Yes, I agree. I find it a bit hard to find use-cases for unpublished pages, and also most often end with creating an additional boolean status-field. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now