Extension for “visitors group” and compatibility with “nav-menu-roles”
-
-
Hi,
A particularity of “visitor” is that the alone way to hide for him, some content, is to not publish this content (if the visibility is not limited to others)
In one way it is a paradox the visibility of a published post (or others contents) can be perfectly managed with UAM but only if the user is logged in.
With UAM you can choose who have to view (or others rights) on documents if they are logged in, but any not logged in (visitor) will see any published document.
The important consequence is that it is impossible for admin, author, reviewers to see their article into the whole context of the site (list in category, keywords, search etc..) as could see a visitor (a not logged user) until the post or page has not been published.
Then for admin or author to discover that there are errors into category associations, keywords, menu accesses, search process etc… it must be visible by anybody before… (so, a little late).
A partial deal, a workaround, with this problem, is to create with UAM a “lowest group” which has no more than the visitor rights. But this doesn’t functions always because to view contents as a visitor this particular user has to be logged in, here is the paradox. Because there are many others system behavior which are changed uniquely by the loggin status… This has many effects and sometimes this workaround is not at all usable.
Case of Incompatibility with “nav-menu-roles”
Because of the way to define the user rights combined with logged in, and menu selections the conjoined use of “UAM” and “nav-menu-roles” leads to exclude for visitors elements of menu and destroy his structure (I could explain in details the logical process which leads to this, but it is a little long).Solution :
The solution is to use UAM with a little enhancement (need 6 lines of code) :
– when the user has a num id = 0 (a visitor) the visibility depends of a pseudo and permanent group “UAM-visitor”. With this feature if a post is not associated to the group “UAM-visitor” it will not be visible by visitors. Then you can hide or show a post for visitor with just a click, which is, any way, completely impossible without this enhancement. (note : the enhancement includes the automatically add of this pseudo group).Do somebody or the author interested in this enhancement.
Best regardsTrebly
note : for now, each time a new version is published I have to update it with this enhancement, which is a little bothering
- The topic ‘Extension for “visitors group” and compatibility with “nav-menu-roles”’ is closed to new replies.