Currently one can only have one level of secure access per post type unless posts are manually added to post groups.
We are using Toolset as a kind of user forum on one of our sites, where access is public, but only registered members can add content. We would like the option to add a 'private' field (custom field or taxonomy) where that content would only be available to registered members.
Currently the Access plugin has no way to do that. What would be great is to have dynamic post groups where one can set a criteria, like field value, or taxonomy value, to achieve that. This would be the same as query filters on Views - would you be able to implement this in Access?
many thanks, Ian
Do I understand the request correctly when I assume you want to control content with Toolset Access dynamically, based on values of Fields, or Terms?
So that would mean, you have a page with Field A and Taxonomy B and want it added/controlled by Access (specific Rules) only if the Field A and Taxonomy B present specific values?
I think this could be possible with some custom code, however, it is as well a useful feature, currently lacking in Toolset, since you can only apply rules by Post Type, or single Posts, manually, but not dynamically.
If this is understood correctly I can file the request.
Hi Beda
Yes, exactly.
In this case we are using Toolset to run a type of user forum. When users add content using a post form, I would like them to be able to tick 'private' and this will only allow logged in (approved) users to see the content.
By default Access only allows all or none of a post type to be visible, as you say, and I would thus like to hide only certain entries from non-registered viewers.
many thanks
Ian
Great.
This is the request to upvote:
https://toolset.com/feature-request/allow-conditional-access-control-based-on-fields-or-taxonomies-values/
https://toolset.com/feature-request/?wpv_post_search=allow+conditional+access+control&wpv_sort_orderby=post_date&wpv_sort_order=asc&wpv_sort_orderby_as=string&wpv_view_count=686737
FYI, what you try to achieve is possible with Custom Code.
You can open a Ticket, asking for instructions on how to update the Access Settings for a single post with custom code.
You could, for example, assign a specific group based on what value in the field or taxonomy.
The request itself is filed and votable as shown above.
Hi Beda
Do you have an example of the custom code you refer to above? Can I accomplish this without waiting for an update to Access?
many thanks
Ian
You can open a Ticket, asking for instructions on how to update the Access Settings for a single post with custom code.
We cannot handle this here because this is a feature request.
I now opened a ticket directly for you:
https://toolset.com/forums/topic/split-dynamic-post-groups-based-on-field-or-taxonomy-values/