Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Have the layout templates moved from config.xml? 
 
stopsatgreen
Jr. Member
 
Total Posts:  20
Joined:  2009-06-01
 

In the Wiki it states that the layout template code is found at:

YourServer/magento/app/code/core/Mage/Cms/etc/config.xml

However, I can’t find the quoted code in that file anywhere. Has this been changed, and the Wiki is out of date?

 
Magento Community Magento Community
Magento Community
Magento Community
 
robin2160
Mentor
 
Avatar
Total Posts:  1046
Joined:  2009-02-15
Berlin / Germany
 

This Wiki is ancient.
At this time the layout.xml’s cased in

app\design\frontend\default\default\layout

Hope this helps wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
stopsatgreen
Jr. Member
 
Total Posts:  20
Joined:  2009-06-01
 

Sorry, maybe I wasn’t clear; I mean the config file that allows you to choose which Layouts are available for a page in the CMS to choose.

 
Magento Community Magento Community
Magento Community
Magento Community
 
robin2160
Mentor
 
Avatar
Total Posts:  1046
Joined:  2009-02-15
Berlin / Germany
 

At line 174 you find the part:

<cms><class>Mage_Cms_Block</class></cms>
        </
blocks>
        <
cms>
            <
layouts>
                <empty>
                    <
label>Empty</label>
                    <
template>page/one-column.phtml</template>
                </empty>
                <
one_column>
                    <
label>1 column</label>
                    <
template>page/1column.phtml</template>
                </
one_column>
                <
two_columns_left>
                    <
label>2 columns with left bar</label>
                    <
template>page/2columns-left.phtml</template>
                </
two_columns_left>
                <
two_columns_right>
                    <
label>2 columns with right bar</label>
                    <
template>page/2columns-right.phtml</template>
                </
two_columns_right>
                <
three_columns>
                    <
label>3 columns</label>
                    <
template>page/3columns.phtml</template>
                </
three_columns>
            </
layouts>
        </
cms>
        <
events>

But why do you need this xml ?
You can direct choose the available layouts in Admin CMS (Custom Design ->Layout).

 
Magento Community Magento Community
Magento Community
Magento Community
 
stopsatgreen
Jr. Member
 
Total Posts:  20
Joined:  2009-06-01
 

Something has changed, because I’m using 1.3.2.1 and that code is NOT in the config.xml file; I tried adding it in at the position you indicated (line 183 in my file) including a new template (which is the reason I need to edit it), but the new template does not show as an option in the CMS.

 
Magento Community Magento Community
Magento Community
Magento Community
 
robin2160
Mentor
 
Avatar
Total Posts:  1046
Joined:  2009-02-15
Berlin / Germany
 

That’s right.
every day a new surprise.  grin

Now, you find this here:

app/code/core/Mage/Page/ect config.xml

 
Magento Community Magento Community
Magento Community
Magento Community
 
stopsatgreen
Jr. Member
 
Total Posts:  20
Joined:  2009-06-01
 

That’s it! Great, thanks a lot.

Are these changes announced anywhere? Seems like a pretty important change to me!

 
Magento Community Magento Community
Magento Community
Magento Community
 
robin2160
Mentor
 
Avatar
Total Posts:  1046
Joined:  2009-02-15
Berlin / Germany
 

Not that I remember.
But fine that’s now works for your.  wink

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top