Hi Guys,
Is it possible to release locks on a page when a user logouts out of the _edit interface?.. or vice-versa (logout on release lock?)
thanks
aleks
You can't directly release your locks when exiting Simple Edit, no. Remember that exiting Simple Edit doesn't actually log the user out of Matrix, it just shifts the user back to "front-end" view.
I am using %release_locks% in simple edit as the exit button, then doing a javascript redirect on the front end to %asset_link%?SQ_ACTION=logout if the user is still 'logged_in'
Is there a better way than this to do an auto logout on release locks?
Actually, what I would prefer is to have a release ALL locks button in simple edit.
Has anyone done this? I've attempted to use the release all locks submit button from the admin screen for a user, but with no luck.
Anyone have any suggestions? This is an issue I would like to get solved, any help will be appreciated.
Release all locks & logout at the same time from simple edit is what I am trying to accomplish.
You can only do this in 3.12, but:
You can provide your own logout link (or exit simple edit link) by using a show_if design area in the site design, or using a layout to define how the simple edit interface works. You cannot use the Exit Simple Edit button for this.
Once you have your own logout/exit button, you can hard-code in a query string var like "&exiting=1" onto the logout/exit URL.
Then you can create a trigger that listens for URLs with "exiting=1" and run the trigger action to release locks on the current asset.
This would take the user back to the frontend interface (and log them out if required) and release the locks they hold on the asset they were editing.
That is as much as you can do without development.
Scenario described by Greg means that only the last asset edited will be unlocked.