How to change URL names in Umbraco

前端 未结 5 1832
你的背包
你的背包 2021-02-02 03:05

This is my first time round using Umbraco and I have created Document Types / Pages using the wrong naming format and now this has transpired into my page URL\'s, for instance <

5条回答
  •  耶瑟儿~
    2021-02-02 03:32

    Solution:

    • Create property on in Document Types which applies to all pages you want to change the URL
    • Call the name anything you want e.g Page URL and Possibly give it a new tab.
    • Call the alias umbracoUrlAlias
    • Type as text sting
    • Make it required (As when you start replacing .Url with .umbracoUrlAlias within the views it will need to be present)
    • Go into all your pages and rename them using the property you just created
    • Now with your code, say with the navigation where you have used .Url change it to .umbracoUrlAlias and the new URL's will be used.

    Note if you don't use .umbracoUrlAlias the links will still be active i.e. they work but they won't be displayed in the address bar as .Url spits out the original ones associated with the page.

提交回复
热议问题