0

I have several custom fields I added to my CMS pages but I only want them to show up on the backend if the admin user selects a specific template. For example, the text field "doctor name" would only show after "doctor" template was selected under layout->Design

New fields are added through the cms_page_form.xml and InstallSchema.php

-1

It's pretty simple, I've check out this guide and hope it might be helpful for you. And please check the widget options in order to display.

Have a look: https://magenticians.com/magento-cms/

| improve this answer | |
  • Neither the "answer" or the link address how to restrict custom CMS entry fields based on the template type – Sam Jun 30 at 14:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.