Uploaded image for project: 'Magnolia Standard Templating Kit (closed)'
  1. Magnolia Standard Templating Kit (closed)
  2. MGNLSTK-316

Add "Page Intro" on Section Template

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 1.1
    • None
    • templates
    • None

    Description

      Philipp asked me to document this here...

      I dont know whether the "Page Intro" will become standard, but here is what we have done to make it available.
      (the INSM project does not use "Openers" on sections - maybe this is an important fact)

      we just added the following:

      [@cms.editBar dialog="stkSectionHeader" editLabel="${i18n['section.editHeader']}" moveLabel="" deleteLabel=""/]
      
      <div id="page-intro">
          [#if content.title?has_content]<h1>${content.title?html}</h1>[/#if]
          [#if content.abstract?has_content]<p>${content.abstract?html}</p>[/#if]
      </div><!-- #page-intro -->
      

      to "templating-kit/templates/section/mainArea.ftl".

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              pbaerfuss Philipp Bärfuss
              rainer Rainer Blumenthal
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: