Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.3] Assign Namespaces to a Category #11448

Closed
mindeffects opened this issue Jun 2, 2014 · 16 comments
Closed

[2.3] Assign Namespaces to a Category #11448

mindeffects opened this issue Jun 2, 2014 · 16 comments
Labels
area-security feature Request about implementing a brand new function or possibility.

Comments

@mindeffects
Copy link
Contributor

There are days in the life of a decent MODXpert, when he gets asked by a client to change some sort of "translation", "system setting" or whatever. That happens like every day. The usual response is (spoken out loud): "Sure, no thing." but honestly he/she thinks (silently): "C'mon, that's just SUCH a simple task that they should/could do themselves!". But clients cannot do this themselves because we don't dare to let them near "System Settings" or the "Lexicon(s)".

But what if Namespaces could be assigned to a Category? Wow, think of that: Clients changes those setting they are allowed to change, because they cannot break anything. They can now edit translations for those little asides headline you used in a carefully crafted chunk. Clients could change stuff just like they can change some of their user setting.

Just create a namespace e.g. "clientstuff" with an empty "core path" and an "assets path" pointing to "{assets_path}assets/clientstuff/" and a category "Client editable". Done. Now, when a client enters the "System Settings" he only sees the settings he is allowed to change. Same for the Lexicon: only the translations he should be able to do on his own are visible.

Yes, we all want that, right? Please comment and "vote" for this idea to become reality in MODX 2.3!

@rthrash rthrash added this to the Revolution-2.3.0-beta-1 milestone Jun 2, 2014
@mindeffects mindeffects changed the title [2.3] Assign Namespaces to a Resource Groups [2.3] Assign Namespaces to a Category Jun 2, 2014
@exside
Copy link
Contributor

exside commented Jun 3, 2014

Would be nice =), but probably quite a lot of work to make this work no?

@mindeffects
Copy link
Contributor Author

Don't know, but I guess, it is "just" a check and a filter.
Ryan thinks it's a good thing, but more people have to "voice a need" for such a feature.

@dannevang
Copy link
Contributor

+1 on that

@StevenMorgan
Copy link
Contributor

+1 solid use case.

Don't care if it's 2.3 or a future release. Suggest Priority should be low and milestone changed as it missed the feature freeze deadline referenced on Roadmap.

@mindeffects
Copy link
Contributor Author

I think that @rthrash just liked the idea, @StevenMorgan. After checking with "the guys" they will decide if and how it could be implemented. Should happen this week. Then the priority will get adjusted.

@StevenMorgan
Copy link
Contributor

Great. Agreed it's a great idea - just needs a home in the "roadmap".

@Mark-H
Copy link
Collaborator

Mark-H commented Jun 4, 2014

Aren't namespaces sort of categories already? Maybe I'm not fully understanding this one..

@mindeffects
Copy link
Contributor Author

Well, @Mark-H, why did you write "ClientConfig"? ;-) Normally clients don't get access to the "system settings" where they could change some website-wide settings. They cannot be limited to a certain area, so they either see "everything" or "northing". Same is true for lexicons: All or none.

At this point the categories could kick in: You can limit user groups to access only certain elements (chunks, tvs etc.) belonging to a category. The same mechanism could be applied to "namespaces" to achieve a similar effect: You can allow some user to access a part of the system settings, where they find the stuff they are allowed to change.
Same with the lexicons. Clients could edit their translation themselves and would not have to bother the admin with things like "Could you please change 'Thanks!' into 'Thank you very much!'.

@StevenMorgan
Copy link
Contributor

As I understand it this approach is frequently used with Element categories to provide access to certain Chunks, but hide tpl focussed Chunks for example.

@Mark-H
Copy link
Collaborator

Mark-H commented Jun 4, 2014

Ah okay, so this is less about adding actual categories to namespaces, but more about being able of limiting what namespaces can be accessed in lexicon management and system settings. Gotcha.

In that case, I would say we don't need to add categories to elements, but add access controls (or perhaps an easier mechanism to control access) to namespaces.

@mindeffects
Copy link
Contributor Author

Yes, @StevenMorgan, exactly. But now with "namespaces" to hide some of the dangerous stuff whilst keeping the harmless stuff available for some users.
The idea is not "100% pure" but I wanted to use functionalities that are already there – to minimise the coding work.
@Mark-H : If this would be possible with ACLs instead: perfect! Still, there must be a field in the namespace to define which ACLs have to be accessible. Right? Since many users are somehow "not so good friends" with the ACLs, this mechanism should be "easy to understand". ;-)

@theboxer
Copy link
Member

theboxer commented Jun 4, 2014

@mindeffects I would prefer to add a tab to the User group panel (similar as context access, RG access), where you will be able to specify level (can see lexicons in that namespace, can see system settings in that namespace, etc.) for group & role to access the namespace

@mindeffects
Copy link
Contributor Author

@theboxer : Well played. THAT would be the king's solution! I bow down before you, Sir! ;-)

@opengeek opengeek removed this from the v2.3.0-pl milestone Jul 15, 2014
@bequadrat
Copy link

Just needed exactly this feature for a multilingual website, and @mindeffects pointed me here. So +1 me on that :-)

@mindeffects
Copy link
Contributor Author

Hi John ( @theboxer ),
another MODX user just asked how to give customers access to just one lexicon to enable them to edit their translations.
Do you have any insight views on this topic and your latest comment (issuecomment-45142354)?
Thanks
Oliver

@Mark-H
Copy link
Collaborator

Mark-H commented Jul 13, 2015

This was resolved in #12354

@Mark-H Mark-H closed this as completed Jul 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-security feature Request about implementing a brand new function or possibility.
Projects
None yet
Development

No branches or pull requests

9 participants