I have a 'folder' document inside the content tree called 'partners', but I don't want the url to be /partners/some-partner. So I created an instance of ApplicationBase which sets the property umbracoUrlName like /some-partner. The code:
public PartnerBase() { Document.AfterPublish += new Document.PublishEventHandler(Document_AfterPublish); }
URL's
Hey - Using your package and its great =)
One question I have is about the URL's? I am using Alphabet folders, and the URLs are being published as below
Is there any way to over ride this, or make a URL like so? As they are all part of one section?
Thanks
Guess not :(
Comment author was deleted
Maybe you could use the umbracourlname property, and fill that on creation of the new pages
http://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracourlname
Comment author was deleted
Or umbracourlalias
http://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracourlalias
What I'm doing at the moment:
I have a 'folder' document inside the content tree called 'partners', but I don't want the url to be /partners/some-partner.
So I created an instance of ApplicationBase which sets the property umbracoUrlName like /some-partner.
The code:
The GenerateSlug method:
I tried but this doesn't work for me maybe i should debug it but that requires me to setup environment on my machine.
is working on a reply...