nerdexam
Magento

M70-301 · Question #51

You want to load my-file.js only on the exam' CMS page. In native Magento, which two of the following statements are true? (Choose TWO.)

The correct answer is C. You must add appropriate XML to the CMS Layout-Update-XML textarea of the exam CMS page. E. You must make sure you are not using a layout handle in the Layout-Update-XML textarea of the "exam". See the full explanation below for the reasoning.

Question

You want to load my-file.js only on the exam' CMS page. In native Magento, which two of the following statements are true? (Choose TWO.)

Options

  • AYou must create exam.xml and put the appropriate XML inside the <cms_page_exam> layout handle,
  • BYou must make sure that my-file.js is present in app/design/base/default/cms/exam/.
  • CYou must add appropriate XML to the CMS Layout-Update-XML textarea of the exam CMS page.
  • DYou must add <?php echo $this->getChildJs (`js/my-file.js'); ?> to head.phtml .
  • EYou must make sure you are not using a layout handle in the Layout-Update-XML textarea of the "exam"

How the community answered

(62 responses)
  • A
    3% (2)
  • B
    11% (7)
  • C
    81% (50)
  • D
    5% (3)

Community Discussion

No community discussion yet for this question.

Full M70-301 Practice