Hi
Is there a way to make Wayfinder list restricted pages even if the user is not logged in or has required permissions?
This should be such an easy thing to do, but I can’t find the right parameters.
I don’t recall wayfinder having that function and I don’t see it in the docs. However you may be able to hack that in by simply altering the query or the docgroup filtering. This begins on line 347 of wayfinder.inc.php in the assets/snippets/wayfinder directory.
This section is labeled "// get document groups for current user" but you could also edit the "// build query" section.
It worked like a charm. I editet the SQL call to not include {access}. Thank you for your helt
-
☆ A M B ☆
- 24,524 Posts
So the purpose of this is to show the protected pages in a menu, then when the user goes there, he gets sent off to a "permissions denied" page that offers them a registration form?
I guess that is how it would work. Does weblogin redirect to the requested document after login or will it always go to the assigned login page?
One way to work around this is to have weblinks to the private documents. This is probably the easiest way to achieve this without modifying the code. This could be useful for site maps or for portal type sites in order to let people know what is inside. Ditto has this parameter as well.