AbleCommerce Forums
»
AbleCommerce
»
Content Management System
»
9.0.4 inner template changes versus changes made in CMS mode
Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
I'm finding the relationship between inner templates and the front end CMS very confusing. If I create an inner template, assign it to a content page and preview the page it looks fine. Exactly how I laid it out in the inner template. And if I switch on CMS while previewing that content page and modify the page by adding/removing widgets, the page is changed like I would expect. But, the original inner template is NOT updated. Now I have a content page where the inner template in the admin is set up completely different from how the content page itself renders because it was changed via the CMS. Question 1: Why aren't CMS changes reflected back down to the original inner template? Wouldn't you always want that? Question 2: When working on an inner template in the admin, the user has no indication the changes they are making will never be rendered. If an inner template is assigned to a page that makes the 'Customized Pages' list, there should be a really obvious indicator that this inner template will not be processed/rendered. Question 3: If I try the reset on the 'Customized Pages' page in the admin, the popup warning is vague. Am I going to lose the entire inner template setup? Or only the CMS-side changes that were made to the content page and now the original inner template will render as it was designed? Edited by user Monday, August 2, 2021 2:53:14 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Question 1 & 2: Setting up an inner template in the admin can be used by multiple pages. Changes done in the admin side inner template will reflect on all pages using that inner template provided that the page is not customized using the front-end CMS editor.
Front-end CMS editor changes will always be page-specific. This feature enables a user to customize a page that needs to use the layout/widgets set in an inner template but also a minor page-specific change is needed, this feature saves a user from creating a separate new inner template for that minor change.
Question 3: The reset function on customized pages will reset the changes done from the front-end CMS editor. Changes done from the admin side will remain there. The reset option is only for front-end customizations.
|
1 user thanked shaharyar for this useful post.
|
|
|
Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
Your answers were excellent, thank you.
I think the fact that the original inner template remains assigned to the page leads to my confusion. It does not serve any purpose to have an inner template assigned to a page once that page is customized in the CMS.
Does changing the assigned inner template on a content page clear the CMS customizations? Or is the only way to clear it is from the Customized Pages page?
On the CMS side, I don't remember seeing anything that indicates 'This page is customized, inner/outer template changes will not be processed' or 'Reset this page to assigned inner/outer templates'. Maybe I missed those?
|
|
|
|
Rank: Advanced Member
Groups: HelpDesk, Developers Joined: 11/9/2018(UTC) Posts: 564
Thanks: 122 times Was thanked: 26 time(s) in 25 post(s)
|
The same rule does not seem to apply to html snippets.
If I add an HMTL snippet in the admin, then drag-add that snippet to a page via CMS, the html content is still changeable via the admin html snippet definition. And it will update on every content page that references that html snippet.
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Quote:Does changing the assigned inner template on a content page clear the CMS customizations? Or is the only way to clear it is from the Customized Pages page?
On the CMS side, I don't remember seeing anything that indicates 'This page is customized, inner/outer template changes will not be processed' or 'Reset this page to assigned inner/outer templates'. Maybe I missed those? If the page is customized, the CMS will not allow changing inner/outer layout from the front-end editor. There is a message. Please see screenshot Untitled.png (18kb) downloaded 0 time(s).
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Quote:If I add an HMTL snippet in the admin, then drag-add that snippet to a page via CMS, the html content is still changeable via the admin html snippet definition. And it will update on every content page that references that html snippet. If you are referring to changing the HTML snippet content. Yes, changing the HTML snippet content will update the content of the snippet anywhere it is used because the value stored in the database is changed. Similarly, if you change the content of a widget from code it will update anywhere it is being used.
|
|
|
|
AbleCommerce Forums
»
AbleCommerce
»
Content Management System
»
9.0.4 inner template changes versus changes made in CMS mode
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close