[Résolu] Layouts usage resets when editing another layout
This support ticket is created Il y a 7 années et 1 mois. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I am trying to: maintain the Layouts usage assignment but it resets itself
I visited this URL: backend, toolset layouts
I expected to see: the layout I assigned to one page to keep assigned to that page
Instead, I got: the usage assignment of this layout was removed and the layout was put in the unassigned department
This happened several times on a site I am developing.
I have a front page which has a custom layout assigned to it. This is a child layout which has a parent layout. The child layout is assigned to one individual page which is in use as the static homepage of the site.
Whenever I change something in the assignment of another layout, it appears that the home page assignment has been reset and the home page layout is placed in the department for unassigned layouts.
This happens for example when I add a layout assignment to an existing layout. For exmple: I have a layout that is assigned to all pages. This is a child layout using the same parent layout as the homepage layout does. When I added another category to this assignment (Mailpoet pages), the assignment of the homepage layout had been removed.
This happened also after adding a new layout and assigning it to e.g. all pages. Then the layout which was assigned to one specific page got unassigned.
I would like to make it possible to 'lock' assignments so they can't be overridden by other assignments without manually unlocking them first.
Thanks for the detailed explanation of the problem.
I was able to reproduce the problem on a test installation and I am escalating this thread so that it can be investigated further.
The existing assignments are being disregarded when updating the assignment of the Pages layout, and it looks like a choice as to whether to maintain or overwrite these is required.
I'll keep you posted when there is something to report.
I have a parent layout with two child layouts.
Child layout 1 is assigned to the homepage.
Child layout 2 is assigned to all pages (post type pages).
When I add a new page I expect Child layout 2 to be assigned automatically to this page. But it doesn't. I have to manually assign this new individual page to Child layout 2.
I added two screenshots that I hope add some more detail to my questions. front end display.png says: "there is no template lay-out for Page items" template layout.png says: "Selected template Layout: Pagina Layout"
Pagina Layout is the Child layout I assigned to all pages.
So why in the Front-end Display is mentioned there is no Template Layout for Page items?