Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7821949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:47:39+00:00 2026-06-02T07:47:39+00:00

I have created a Magento Frontend Package & Theme… I’ve created a layout/cms.xml file

  • 0

I have created a Magento Frontend Package & Theme… I’ve created a layout/cms.xml file with the following content. On the homepage, there is now the page-title but no content?

<layout version="0.1.0">
    <default>
        <reference name="footer">
            <block type="cms/block" name="cms_footer_links" before="footer_links">
                <action method="setBlockId"><block_id>footer_links</block_id></action>
            </block>
        </reference>
    </default>

    <cms_page translate="label">
        <label>CMS Pages (All)</label>
        <reference name="content">
            <block type="core/template" name="page_content_heading" template="cms/content_heading.phtml"/>
            <block type="page/html_wrapper" name="cms.wrapper" translate="label">
                <label>CMS Content Wrapper</label>
                <block type="cms/page" name="cms_page"/>
            </block>
        </reference>
    </cms_page>

    <cms_index_index translate="label">
        <label>CMS Home Page</label>
        <reference name="content">
            <block type="core/template" name="cms_index_index" template="cms/index/index.phtml" />
            <block type="cms/page" name="cms_page" />

            <block type="page/html_wrapper" name="cms.wrapper" translate="label">
                <label>CMS Content Wrapper</label>
                <block type="cms/page" name="cms_page"/>
            </block>
        </reference>
    </cms_index_index>

    <cms_index_defaultindex>
        <remove name="right"/>
        <remove name="left"/>

        <reference name="content">
            <block type="core/template" name="default_home_page" template="cms/default/home.phtml"/>
        </reference>
    </cms_index_defaultindex>

    <cms_index_noroute translate="label">
        <label>CMS No-Route Page</label>
    </cms_index_noroute>

    <cms_index_defaultnoroute>
        <remove name="right"/>
        <remove name="left"/>

        <reference name="content">
            <block type="core/template" name="default_no_route" template="cms/default/no-route.phtml"/>
        </reference>
    </cms_index_defaultnoroute>
</layout>

As you can see there is the <block type="cms/page" name="cms_page" /> in it, but there is nothing in the frontend. Why? Any hints?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T07:47:40+00:00Added an answer on June 2, 2026 at 7:47 am
    // get current cms page from Mage:getSingleton
    $cms_id = Mage::getSingleton('cms/page')->getIdentifier();
    $cms_title = Mage::getSingleton('cms/page')->getTitle();
    $cms_content = Mage::getSingleton('cms/page')->getContent();
    

    thanks to http://developerafroz.blogspot.de/2012/01/get-current-cms-page-magentocms-pages.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Magento Packaging an Extension Hi, I have created a wireframe theme for
I have created a new KeyListener, defined as following: ... public void keyTyped(KeyEvent arg0)
I have created a new JSP file called loggedOut.jsp and after I click logout
I have created a custom attribute in my asp.net MVC application using the following
I have created a module in Magento which takes certain views from customers about
In my Magento store I have created a new attribute with an attribute code
In a vanilla install of Magento 1.5.1.0 I have created simple products COLOR-RED, COLOR-BLUE
I have created a shopping cart price rule in my Magento store (version 1.4.1.1),
I am creating a custom module in magento.I have created block class and phtml
I have created my first Magento widget on a test site (same code and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.