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?
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")
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
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
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...
Many thanks, Jeremy.
is working on a reply...