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

  • Home
  • SEARCH
  • 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 8491767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:31:41+00:00 2026-06-10T22:31:41+00:00

I’m creating a new Magento 1.7.0.2 module for the front end, but I can’t

  • 0

I’m creating a new Magento 1.7.0.2 module for the front end, but I can’t get my one block to attach to any decent point of the page. Currently it’s hiding down at the bottom of its page with all the default stuff up above it. I haven’t really messed with the front end much, yet, so this is a fairly fresh Magento install. I’ve tried the reference tags, but if I include them currently my block disappears entirely no matter what I put in the name quotes.

My Layout:

<?xml version="1.0"?>

<layout version="0.1.0">
    <default>
    </default>
    <!--<reference name="root">-->
        <makeorder_index_index>
            <block type="makeorder/testblock" output="toHtml" name="orderdispaly"
                    template="makeorder/orderdisplay.phtml"/>
        </makeorder_index_index>
    <!--</reference>-->
</layout>

My current Template:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Test Block</title>
</head>
<body>
    <h2>Hello!</h2>
    <div class="Test1">
        <?php echo $this->displaystyles();?>
    </div>
    <br /><hr /><br />
    <div class="test2">
        <?php echo $this->displaypapers();?>
    </div>

</body>
</html> 

I would like to get the block into the middle of the page. Any help would be greatly appreciated, since I obviously am missing something important.

  • 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-10T22:31:43+00:00Added an answer on June 10, 2026 at 10:31 pm

    There are a couple of errors in your layout xml, but rather than correct them I would go this way as a start (unless there is a reason you want to recreate the full page layout in your own template?? )

    Layout:

    <?xml version="1.0"?>
    
    <layout version="0.1.0">
        <makeorder_index_index>
            <reference name="root">
                <action method="setTemplate"><template>page/1column.phtml</template></action>
            </reference>
            <reference name="content">
                <block type="makeorder/testblock" name="orderdispaly" template="makeorder/orderdisplay.phtml" />
            </reference>
        </makeorder_index_index>
    </layout>
    

    Template:

    <h2>Hello!</h2>
    <div class="Test1">
        <?php echo $this->displaystyles();?>
    </div>
    <br /><hr /><br />
    <div class="test2">
        <?php echo $this->displaypapers();?>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
Seemingly simple, but I cannot find anything relevant on the web. What is the

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.