Remember last edited page for admin session
It would be helpful if LUYA could remember the last edited CMS page and display it again when clicking on the Pages menu entry, returning from another admin section (e.g. when having to switch from page editing to the file manager and back to page editing).
admin#!/template/cmsadmin~2Fdefault~2Findex/createandadmin#!/template/cmsadmin~2Fdefault~2Findex/draftscan very propably omitted.- Last edited page information is only needed during the current session.
Idea:
- Simply save the
nav_idin$_SESSION['cms_nav_id'], when entering a page viewadmin#!/template/cmsadmin~2Fdefault~2Findex/update/<nav_id>User inputs don't need to be saved. When clicking an item in the admin menu, no modal is opened. - Check
$_SESSION['cms_nav_id']when following the routecmsadmin/default/indexthe next time and reroute.
I think session is not what we should do in terms of rest api, but we have user settings to store that state. The state must be stored when navigate to that page (there is an async call already) and then we should retrieve that state from user settings again when retrieve the menu items (maybe there is already an async call where we could add that "last_edited_page_id").