Git

På GIT'en finder du brugbare kodesnippets som du kan bruge i dine projekter.

Populære tags

Umbraco Config TinyMce Razor SQL

DataDirectory SQL

// instead of
"data source=C:\DIR\App_Data\sportsstore.db"

//write
data source=|DataDirectory|\sportsstore.db


Typed Media Get Content

@Umbraco.TypedContent([int pageID]).GetPropertyValue([string property])


Remove empty paragraph tags in tinymce in Umbraco

// This will not generate <p> tag in CMS Editor
// Add new line as: 

<config key="forced_root_block"></config>

// change it to something else
<config key="forced_root_block">div</config>
<config key="forced_root_block">false</config>