Skip to content

Instantly share code, notes, and snippets.

@thomasclausen
thomasclausen / ItemType_News.xml
Created April 4, 2014 08:41
Item for news - Dynamicweb
<?xml version="1.0" encoding="utf-16" standalone="yes"?>
<items>
<item category="" name="Nyhed" systemName="News" description="" icon="/Admin/Images/Ribbon/Icons/Small/text_rich_colored.png" largeIcon="/Admin/Images/Ribbon/Icons/text_rich_colored.png" includeInUrlIndex="True">
<fields>
<field name="Overskrift" systemName="Heading" description="" type="System.String, mscorlib">
<editor type="Dynamicweb.Content.Items.Editors.TextEditor, Dynamicweb">
<editorConfuguration />
</editor>
<validators>
<validator type="Dynamicweb.Content.Items.Editors.RequiredValidator, Dynamicweb" errorMessage="" />
@thomasclausen
thomasclausen / ItemType_Tabs.xml
Last active August 29, 2015 13:58
Item for a tabs paragraph - Dynamicweb
<?xml version="1.0" encoding="utf-16" standalone="yes"?>
<items>
<item category="" name="Faner" systemName="Tabs" description="" icon="/Admin/Images/Ribbon/Icons/Small/index.png" largeIcon="/Admin/Images/Ribbon/Icons/index.png" includeInUrlIndex="False">
<fields>
<field name="Tabs" systemName="Tabs" description="" type="System.Collections.Generic.IEnumerable`1[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib">
<editor type="Dynamicweb.Content.Items.Editors.ItemListEditor, Dynamicweb">
<editorConfuguration><Parameters><Parameter addin="Dynamicweb.Content.Items.Editors.ItemListEditor" name="Item type" value="Tabs_Content" /></Parameters></editorConfuguration>
</editor>
<options sourceType="Static">
<Static>
@thomasclausen
thomasclausen / ItemType_Carousel.xml
Last active August 29, 2015 13:58
Item for a carousel paragraph - Dynamicweb
@thomasclausen
thomasclausen / body.html
Last active August 29, 2015 13:56
Mobile, tablet and desktop attributes and template class - Dynamicweb
<body data-is-mobile="<!--@Global:Device.IsMobile-->" data-is-tablet="<!--@Global:Device.IsTablet-->" data-is-desktop="<!--@Global:Device.IsDesktop-->" class="page-template-<!--@Global:Pageview.LayoutTemplate.Replace('.html', '').Replace('.cshtml', '')-->">
@thomasclausen
thomasclausen / language.html
Created February 19, 2014 11:08
Language selector - Dynamicweb
<nav class="language">
<ul class="clearfix">
<!--@LoopStart(Languages)-->
<li><a href="/Default.aspx?ID=<!--@FirstPageID-->" hreflang="<[email protected](0, 2)-->" class="flags-<[email protected](3).ToLower()--><!--@If Defined(IsCurrent)--> current<!--@EndIf-->"><[email protected](3).ToLower()--></a></li>
<!--@LoopEnd(Languages)-->
</ul>
</nav>