Magento defines a custom CMS page in cms.xml

I added a few pages (cms) to the Magento admin panel. I know that I can attach blocks to a specific page using the {{block ..}} in the content field.

I do not want to define blocks there, but in the cms.xml file. Therefore, other store administrators are not annoyed by the strange codes ({{block ..}}) in the backend editor.

I defined an index / homepage with the following xml tag:

<cms_index_index>
    <reference name="content">
        <block... />
    </reference>
</cms_index_index>

How can I identify other cms pages (by identifier or seo-identifier) ​​in cms.xml?

I tried to define them:

<cms_page_[seo-ident]>
<cms_pageid_[id]>
<cms_[seo-ident]>
<cms_[id]>
+3
source share
3 answers

Wow Alan Storm CMS, , , .

, Google-ed,

Matthias Zeis : https://magento.stackexchange.com/questions/289/cms-xml-handles-for-layout-updates

, cms_page_render, .

0

CMS, , XML-/ (cms_index_index) .

"". . , cms_index_index - , CMS index. CMS.

, , CMS .

. Magento, . CMS, URL

http://example.com/index.php/this-is-my-identifier

  • cms_page
  • STORE_default
  • THEME_frontend_default_default
  • cms_page_view
  • page_one_column
  • customer_logged_out

, , , Magento CMS ( , cms_index_index, , ... , , , - , t ).

, <cms_page> <cms_page_view>. CMS.

+4

, Magento . , , , , CMS.

.

, .

+1

Source: https://habr.com/ru/post/1717250/


All Articles