Developer forum

Forum » Templates » JSON template how

JSON template how

Jonas Mersholm
Reply

I'm trying to create a JSON template, but no matter what i do, it wont register it in the pages properties.

Ive set the doctype of the page to application/json

HOW do i manage, to make a page layout for this?

 

<!--@Layout.Title(Forhandler siden)-->
<!--@Layout.Description(Til forhandler side)-->
{

}
 


Replies

 
Mikkel Ricky
Reply

Dynamicweb only lets you pick a template that looks like layout templates. The current requirements are that

  • it's an html document, i.e. contains "<body" and is not a master template (containing @ContentPlaceholder)
  • it has a contentplaceholder, i.e. contains "dwcontent"

Take a look at Nicolai's example template for inspiration: https://github.com/dynamicweb/tech-conf-2014/blob/master/Files/Templates/Designs/Dwsimple/nolayout.html.

Best regards,
Mikkel 

 

You must be logged in to post in the forum