[MTE-63] Add PageTemplateDefinition to MTE Created: 24/Nov/15  Updated: 23/Feb/16  Resolved: 05/Feb/16

Status: Closed
Project: Magnolia Templating Essentials
Component/s: models
Affects Version/s: None
Fix Version/s: 0.9

Type: Task Priority: Neutral
Reporter: Philip Mundt Assignee: Philip Mundt
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 0.25d
Original Estimate: Not Specified

Attachments: File basic.yaml     File main.ftl    
Issue Links:
dependency
is depended upon by MTE-49 More sophisticated main page template Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:
Epic Link: LD: components + pages
Sprint: Basel 29
Story Points: 5

 Description   

We currently do not provide any custom template definition in MTE, making it difficult for example to get started with page specific JS or CSS files.

In the realm of the demo this is only provided in the travel-demo module providing additional jsFiles only.

We should move this definition to MTE to enable easier access to a basic page template definition. Also providing page specific cssFiles.

  • Move info.magnolia.demo.travel.definition.PageTemplateDefinition to MTE
    • Package needs to change
  • Add possiblity to add cssFiles
Side-note

The code in travel-demo's travel-demo/templates/pages/areas/htmlHeader.ftl already expects cssFiles:

[#if def.cssFiles??]
    [#list def.cssFiles as cssFile]
<link rel="stylesheet" type="text/css" href="${cssFile.link}" media="${cssFile.media}" />
    [/#list]
[/#if]

media attribute should only be rendered when provided in the resource definition.



 Comments   
Comment by Ilgun Ilgun [ 03/Feb/16 ]

Pre-Int passes with both cases.

  • With travel-demo
  • Without travel-demo with the given files thank to pmundt.
Generated at Mon Feb 12 07:41:06 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.