cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify the template of the body CMS page ?

How to modify the template of the body CMS page ?

Hi,

I would like to modify the section that contains the body of a CMS content.

I know that cms.xml is the page that contains the layout directives and "template\cms\content_heading.phtml" cotains the template of the heading. That's ok.

 

Now I'm looking for the template of the body.

I've tried customizing "template\cms\content.phtml" but it seems that it is not the template called to create the page.

In the cms.xml page the section that contains the template that I want to modify is:

            <block type="page/html_wrapper" name="cms.wrapper" translate="label">
                <label>CMS Content Wrapper</label>
                <action method="setElementClass"><value>std</value></action>
                <block type="cms/page" name="cms_page"/>
            </block>

I can't find the file that corresponds to "cms/page" neither in the "default" theme directory nor in the custom theme directory.

Should I create that page?

Otherwise where can I find the template that writes the body of a cms page?

 

Thank you

 

Claudio

 

 

 

 

7 REPLIES

Re: How to modify the template of the body CMS page ?

 There's no such template. Content of this block comes from CMS > Pages

Tanel Raja

Re: How to modify the template of the body CMS page ?

Using template path hints you can easily find your template path files. Login to admin pannel and under

    System -> Configuration
    Change the “Configuration Scope” to “Default Store View” (or whichever store view you want to see template paths on)
    Under Advanced in the left menu click Developer
    Click “Debug” to expand that section
    Change “Template Path Hints” to "Yes"
    Click Save Configuration

Now, all you have to do is refresh the front-end of your store once to see the template paths showing in red color. This template path hints will let you know which block is responsible for displaying a particular section.

Don't forget to hide the template path when you are done editing.

Re: How to modify the template of the body CMS page ?

Yes I know that the content comes from the CMS but there will be a template in which it is written something like.... <?php echo cms.getContent() ?> .

 

cld

Re: How to modify the template of the body CMS page ?

I've already tried the Debug and the Template hits, it shows the template of the header but I can't find anything about the body.

It is strange.

cld

Re: How to modify the template of the body CMS page ?

I belive content is rendered in page templates such as 2-column-right.phtml.

There you have getChildHtml('content') etc.

 

If that is what you are asking?

 

Edit: Also content in ('content') is generated with various blocks.

 

Cheers

Re: How to modify the template of the body CMS page ?

Hi,

Did you find the CMS to change the content. i need to change this too.

Re: How to modify the template of the body CMS page ?

try finding the file in.....app>design>frontend>"your theme">template>page 

there you can adjust the actual layouts.

OR just to choose a different layout from a different theme go to

CMS>Page>Design>Custom Theme  and choose the layout / theme you want to use.

OR if you just want to change the content

CMS>Page>Content

 

Not sure exactly what you are looking for in the end.

 

~B.