Jason,
I 100% agree with you that URL as a whole page should not be dynamically changed, as that will not make it Search Engine Friendly and screws up the user’s bookmark.
As I mentioned above, what I would like to achieve is to have
navigation link which is dynamically changed. The problem with most of all CMS’ is, the navigation link ties directly to a page or document. Like in MODx, there is no way to separate the configuration of the menu from its related document. So the URL alias goes together with them which I think makes this discussion diverted.
I think the different between MODx and Drupal is the way to assign access permission of a page or document. In MODx, if we assigned the access permission of a document to public users then that document will also apply to the registered users. To my understanding up to now, we can not separate that permission assignment. I hope I am wrong, but I still could not find a way to do it.
Ok. Back to my question. I still strongly believe it can easily be done in MODx. After some readings, I think I can achieve that by doing these:
1. Create a "Registered Users" document group, and assign the user group of "Registered Users" to that document group.
2. Create a "Login" and "Logout" documents with their independent URL aliases and menu settings with "Show in menu" (
donthit bit) both ticked.
3. Allow only "Registered Users" accessing the "Logout" document.
4. Create snippets to change to intercept the "Login" document parsing and change its
donthit bit to 0, when the login is successful.
5. Create snippets to change to intercept the "Logout" document parsing and change the
donthit bit of "Login" document to 1, when the logout is successful.
What do you think about that? Or is there any easiest way to do it?
I still can not make the point 4 and 5 working up to now. So I really need help from the experience MODx PHP coders, like you
Cheers,
Anto