nerdexam
Magento

M70-301 · Question #80

Which of the following is the correct code for assigning a custom template file using layout XML?

The correct answer is B. <block type="core/template" name="custom template" template=" folder/custom_template.phtml"/>. See the full explanation below for the reasoning.

Question

Which of the following is the correct code for assigning a custom template file using layout XML?

Options

  • A<block type="core/text_list" name="custom.template" template=" folder/custom_template.phtml"/>
  • B<block type="core/template" name="custom template" template=" folder/custom_template.phtml"/>
  • C<block type="block/template" name="custom template" template=" folder/custom_template.phtml"/>
  • D<block type="cms/block" name="custom.template"template=" folder/custom_template.phtml"/>
  • E<block type="block/html" name="custom template"template=" folder/custom_template.phtml"/>

How the community answered

(51 responses)
  • A
    2% (1)
  • B
    78% (40)
  • C
    2% (1)
  • D
    12% (6)
  • E
    6% (3)

Community Discussion

No community discussion yet for this question.

Full M70-301 Practice