As you know, in Umbraco, the *.aspx filename is created using the Title of the page. Can this be worked around? I need a page to be TITLED one thing but for the url to be specifically something else. How do I do this?
You can override the file name by adding a generic property (text string) to your document type called umbracoUrlName. Umbraco will then use the value in that field to generate the url.
I always add a page property of pageTitle to allow for this, then just add that into your template in the normal way. You could either make this mandatory or use an xslt macro to fall back to the node name if no pageTitle is entered
Custom URLs / Filenames
Hi,
As you know, in Umbraco, the *.aspx filename is created using the Title of the page. Can this be worked around? I need a page to be TITLED one thing but for the url to be specifically something else. How do I do this?
Thanks,
Garrett
You can override the file name by adding a generic property (text string) to your document type called umbracoUrlName. Umbraco will then use the value in that field to generate the url.
I always add a page property of pageTitle to allow for this, then just add that into your template in the normal way. You could either make this mandatory or use an xslt macro to fall back to the node name if no pageTitle is entered
Ricky has the right answer for this one. Include a property with an alias of umbracoUrlName and datatype textstring. Just like it says here: http://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracourlname
But as Dan says, it's always a good idea to give the users a chance to change the (meta)Title of the page. This is good for SEO you know ;)
Thanks, that does the trick!
//Garrett
Remember to mark this post as answered Garett :)
is working on a reply...