Giter Club home page Giter Club logo

umbracosetup's Introduction

Umbraco Wiki

Intro

The purpose of this repository is to add information about important things to remember when setting up umbraco projects, this includes the different packages to install in order to make the most out of umbraco. This wiki was written for Umbraco 7.10.4

Getting Started

Instllation

 PM> Install-Package UmbracoCms

or go to NuGet and search for UmbracoCms and install. Upon installation, unless you want to toy around and get to the grips with Umbraco, click the customize button which will let you setup connection strings for your database and also to opt out of installing with a sample website.

Git Ignore

https://github.com/github/gitignore/blob/master/Umbraco.gitignore

Packages

Doc Type Grid Editor

Developer Guide - This has more detailed documentation. However, the bits that we're interested in for now is the json config settings shown below which can be found in /config/grid.editors.config.json

{
    "name": "Doc Type",
    "alias": "docType",
    "view": "/App_Plugins/DocTypeGridEditor/Views/doctypegrideditor.html",
    "render": "/App_Plugins/DocTypeGridEditor/Render/DocTypeGridEditor.cshtml",
    "icon": "icon-item-arrangement",
    "config": {
        "allowedDocTypes": [],
        "nameTemplate": "",
        "enablePreview": true,
        "viewPath": "/Views/Partials/Grid/Editors/DocTypeGridEditor/",
        "previewViewPath": "/Views/Partials/Grid/Editors/DocTypeGridEditor/Previews/",
        "previewCssFilePath": "",
        "previewJsFilePath": ""
    }
}

Doc Type Grid Editor is a very powerful package because it allows you to render Document Types in Grid Layouts. What I like to do is, edit allowedDocTypes so that only certain document types can be rendered. You can even use a regex pattern to configure accepted templates, e.g. "Widget$" will match all doc types with an alias ending in "Widget". This is a very powerful tool.

You can just duplicate this json config and effectively creating more ways users can add components to widgets using the grid layout. The name, alias, icon and allowDocTypes are the fields that should be changed to suit your needs.

App Settings

  <appSettings>
    <!--
      Umbraco web.config configuration documentation can be found here:
      http://our.umbraco.org/documentation/using-umbraco/config-files/#webconfig
      -->
    <add key="umbracoReservedPaths" value="~/umbraco,~/install/,~/bundles,~/Content" />
    <add key="Umbraco.ModelsBuilder.Enable" value="true" />
    <add key="Umbraco.ModelsBuilder.ModelsMode" value="LiveAppData" />
  </appSettings>

Ensure Enable = true and ModelsMode = LiveAppData. Live app data means the models are auto generated when the document types are changed in the backoffice. This is good as it helps speed up development.

https://our.umbraco.org/Documentation/reference/templating/Modelsbuilder/Builder-Modes

Misc

Umbraco.TypedContent(Id).OfType<Type>();

umbracosetup's People

Contributors

uche1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.