[MGNLSTK-316] Add "Page Intro" on Section Template Created: 05/Mar/09 Updated: 23/Jan/13 Resolved: 12/Mar/09 |
|
| Status: | Closed |
| Project: | Magnolia Standard Templating Kit (closed) |
| Component/s: | templates |
| Affects Version/s: | None |
| Fix Version/s: | 1.1 |
| Type: | Improvement | Priority: | Major |
| Reporter: | Rainer Blumenthal | Assignee: | Philipp Bärfuss |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Date of First Response: |
| 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. 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". |
| Comments |
| Comment by Philipp Bracher [ 05/Mar/09 ] |
|
How have you overridden the mainArea template? By bootstrapping it into the templates or have you used an other approach? |
| Comment by Rainer Blumenthal [ 05/Mar/09 ] |
|
We have copied the original "mainArea.ftl" in our insm-module "templates/insm2009-module/pages/section/pageIntroMainArea.ftl". |
| Comment by Philipp Bracher [ 05/Mar/09 ] |
|
sounds good |
| Comment by Christian Ringele [ 12/Mar/09 ] |
|
The page intro is now a global template which can be used by any page template. |