Hello,
I am making multi context site, where each of contexts has own domain. This all will manage one user.
I will have about 6 context and for each context about 5 templates, when he will see all templates admin will run out :-D
So what I want to make:
When admin user will try to create resource in some context, he will get to choice only templates thats will defined to that context, not all templates...
Is it possible?
--
John
@theboxer
Hmm, I didn’t find any way in form customization to allow to select only some templates... Find way to set default template, but not a group of templates...
--
John
@theboxer
You should look into Element Category ACLs.
shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect |
github |
splittingred.com
I tried to set it by category acl, but I didn’t succeed...
I looked the video tutorial by you, and think it is not possible to do in element category acl. When I have only one administrator for all of mine contexts, how can I set that he will be able to select template in web context only templates from category A and in XXX context only templates from category XXX?
From video tut. i catched that it is possible for 2 users, but nor for one.
--
John
@theboxer
I’m trying to get users to only see templates for their context or category but I just can’t work it out!
Has anyone worked out how to do it yet?
-
☆ A M B ☆
- 3,141 Posts
Like Shaun said - you'll be looking at element category ACLs.
Put your template in a category and add a new element category access control for that user group. Give it your category and limit it to a context with the context option of element category access. They'll need at least load/list/view, but if you also want them being able to edit it you should give them element.
I know that makes it sound easy.
I think you'll need to create another user group that the user is not in and put all other templates in a separate category. Then create an Element Category Access ACL entry linking the category of those templates to the other user group. That will protect them from the user who shouldn't see them.
You shouldn't actually need to put the templates the user *should* see into a category because you don't need to protect them.
-
☆ A M B ☆
- 3,141 Posts
Oops, that's actually a better approach and mine indeed wont do much.