Open rolandschaub opened 5 years ago
admin#!/template/cmsadmin~2Fdefault~2Findex/create
and admin#!/template/cmsadmin~2Fdefault~2Findex/drafts
can very propably omitted.Idea:
nav_id
in $_SESSION['cms_nav_id']
, when entering a page view admin#!/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.$_SESSION['cms_nav_id']
when following the route cmsadmin/default/index
the 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").
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).