Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCU-58

mainBar instructions incorrect on website

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None
    • content
    • irrelevant

      The information on

      http://documentation.magnolia.info/userguide/templating/example/addmainbar.html

      is a bit confused. It breaks horribly if you type it in as-is. It appears there was a half-hearted and possibly misguided attempt to upgrade the instructions from 3.5 to new features that were supposed to be in 3.6, plus something is possibly missing from the bundled templates.

      magnolia 3.6
      Below is the original code on the site. to get this to work, I had to change:

      dialog to paragraph
      mainbarParagraph to dmsParagraph

      And, there is an unmatched </strong> tag.

      Also, on the page
      http://dev.magnolia.info/ref/latest-stable/magnolia-taglib-cms/tagreference.html
      it says 3.6.1 at the upper left, but "this is version 3.5" in the content area.

      <%@ page contentType="text/html;charset=UTF-8" language="java" %>
      <%@ taglib uri="cms-taglib" prefix="cms" %>
      <html>
      <head>
      <title><cms:out nodeDataName="title" /></title></head>
      <body>
      <cms:mainBar
      dialog="mainbarParagraph"
      label="Page Properties"
      adminButtonVisible="true"/></strong>
      <h1><cms:out nodeDataName="title" /></h1>
      <p>Hello Magnolia World!</p>
      </body>
      </html>

        Acceptance criteria

              ahietala Antti Hietala
              mlzarathustra miles zarathustra
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR