Developer forum

Forum » Feature requests » Default templates for items

Default templates for items

Sebastian Dammark
Reply

When creating items it should be possible to set what templates are usable, and which template is default.  This way the editor doesn't have to bother about this.


Replies

 
Merethe Nielsen
Reply

Hi,

You can "assign" a template to the item type by naming the template with the same name as the item type system name. Is that useful for you?

From the bottom of the page in this manual:
http://manual.dynamicweb-cms.com/Dynamicweb-On-line-Manual/Items/Item-based-pages.aspx

If you have an item type with the system name MyItemType and use it for a page then the system looks for a template called MyItemType.cshtml in the designs folder and use this to render the item based page if it exists.

 

If the item is used as a paragraph, the system looks for a template in the Paragraph folder.

 

Kind regards,
Merethe