Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • MuirisOG 382 posts 1284 karma points
    Jun 14, 2016 @ 16:38
    MuirisOG
    0

    Naming Conventions for special alias properties of DocType

    Hi everyone,

    I can see that there has been a convention to use umbracoNaviHide in earlier versions of Umbraco (I think that now, you must create this yourself).

    Are there any other features or naming conventions that it would be useful to follow, especially when it comes to building docTypes that use Umbraco built-in features?

    Note that I have looked at the following forum post which was really useful, but could well be out-of-date: https://our.umbraco.org/forum/templating/templates-and-document-types/5303-Best-Practises---Naming-conventions?p=0#comment33553

  • MuirisOG 382 posts 1284 karma points
    Sep 27, 2016 @ 16:22
    MuirisOG
    0

    And here's another link which people may find useful.

    http://refreshwebsites.co.uk/blog/6-of-the-best-umbraco-properties-for-all-websites/

    Does anyone know if these are these still effective?

    Thanks Muiris

  • Jeremy Newman 18 posts 190 karma points
    Sep 27, 2016 @ 19:04
    Jeremy Newman
    0

    Thanks. Nice link.

    The first one for me that comes to mind other than umbracoNavihide is bodyText for the Grid property. If you don't set your grid property alias on your document type as "bodyText" then you have to specify the alias in code when rendering...

    <!-- Using grid property alias "bodyText" -->
    @Html.GetGridHtml(Model.Content)
    
    <!-- Using grid property alias "mainGrid" -->
    @Html.GetGridHtml(Model.Content, "mainGrid")
    
  • MuirisOG 382 posts 1284 karma points
    Sep 28, 2016 @ 09:41
    MuirisOG
    0

    Many thanks, Jeremy.

Please Sign in or register to post replies

Write your reply to:

Draft