umbracoUrlName Vs umbracoUrlAlias

Posted 17 October 2018 by Darren Welch

umbracoUrlName

This property will allow you to rename your URL without updating the node name.


So for instance. The URL to this page is darrenwelch.co.uk/blog/umbracoUrlName-Vs-umbracoUrlAlias/


If you would like to have a shorter, neater URL without affecting the node name in the back office.

You need to:

  • Create a new property on the document type
    • name: "umbracoUrlName"
    • type: "Textstring".
  • Open the content node and fill in the new field with the value "shortname".
  • Our new URL would become: darrenwelch.co.uk/blog/shortname/

 

umbracoUrlName

 

umbracoUrlAlias

This property allows you to set up multiple URLs for one content node.

To set this up: 

  • You need to:
  • create a new property on the document type with the name "umbracoUrlAlias" and type of "Textstring".
  • Open the content node and fill in the new field with the value "shortnames, name-vs-alias".
  • Our new URL would become: darrenwelch.co.uk/shortnames/ & darrenwelch.co.uk/name-vs-alias/

 

umbracoUrlAlias

Things to note:

  • The original URL still works. 
  • You can add as many links as you like as a comma separated link.
  • The URLs will be created in the route. e.g. darrenwelch.co.uk/myNewAlias

 





Darren Welch

By

Darren Welch


  17 October 2018


Contact me online

Advertisment


Tags


Related Content




Umbraco - RTE - Add blockquotes

6 Jan 17




Create circular images with CSS

10 Nov 16




How to write HTML faster using Zen Coding

16 Apr 18