2

I need to create an XML file for a custom CMS page but the URL key contains a "/":

i.e. my/page-id

Is there a way to do the equivalent to cms_page_view_id_my/page-id.xml for this? I've tried replacing the slash with a dash (cms_page_view_id_my-page-id.xml) but to no effect.

1 Answer 1

2

The URL key of the page with any forward slash (/) replaced by an underscore (_).

So You need to use cms_page_view_id_my_page-id.xml

For more reference read user Guide

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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