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

page.xml file only showing head and header blocks. 
 
juzzbott
Jr. Member
 
Total Posts:  12
Joined:  2009-08-24
 

Hey everyone,

I am having trouble getting magento to render my theme. It will render my ‘head’ and ‘header’ blocks, but is ignoring my footer one.

Here is my page.xml file

<?xml version="1.0"?>
<layout version="0.1.0">
    <default>
        <
block type="page/html" name="root" output="toHtml" template="page/single_column.phtml">
            <!-- 
Page head block -->
            <
block type="page/html_head" name="head" as="head">
                <
action method="addCss"><stylesheet>css/util.css</stylesheet></action>
                <
action method="addCss"><stylesheet>css/wogstr.css</stylesheet></action>
            </
block>
            <!-- 
Main Content Block -->
            <
block type="page/html_footer" name="footer" as="footer">
            </
block>
            <!-- 
Page Header Block -->
            <
block type="page/html_header" name="header" as="header">
            </
block>    
        </
block>
    </default>
</
layout>

My single_colum.phtml file:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" >

    <
head>
    
        
<?php print($this->getChildHtml('head')) ?>
        
    
</head>
    
    <
body>
        
        <
div class="acc">
            <
a href="#main-nav">Skip to main navigation</a> | <a href="#content">Skip to content</a> | <a href="#footer">Skip to footer</a>
        </
div>
        
        <
div id="content-container">
            
            
<?php print($this->getChildHtml('header')) ?>
                        
            
        
</div> <!-- </content-container> -->
        
        
<?php print($this->getChildHtml('footer')) ?>
        
    
</body>

</
html>

My page/html/footer.phtml file only contains: ‘This is my footer block’ for testing.

I managed to get my ‘head’ and ‘header’ blocks to display first time without a hitch, but any other block, regardless of order in the page, simply refuse to be displayed.

I have my cache off, and the files have the correct permissions. If I comment out the ‘header’ block definition, the changes are immediate and markup removed.

Is there something I am forgetting to do?

Is there any debug log I can view to see if its getting caught anywhere?

Cheers

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