Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remember last edited page for admin session #205

Open
rolandschaub opened this issue Jun 25, 2019 · 2 comments
Open

Remember last edited page for admin session #205

rolandschaub opened this issue Jun 25, 2019 · 2 comments
Assignees

Comments

@rolandschaub
Copy link
Member

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).

@nadar nadar self-assigned this Jun 25, 2019
@hbugdoll
Copy link
Member

hbugdoll commented Nov 1, 2021

  • admin#!/template/cmsadmin~2Fdefault~2Findex/create and admin#!/template/cmsadmin~2Fdefault~2Findex/drafts can very propably omitted.
  • Last edited page information is only needed during the current session.

Idea:

  • Simply save the 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.
  • Check $_SESSION['cms_nav_id'] when following the route cmsadmin/default/index the next time and reroute.

@nadar
Copy link
Member

nadar commented Nov 2, 2021

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").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants