Outbound routing options - UrlSegmentProvider, Pat...
# help-with-umbraco
n
Hi all, I've been trying to study the UrlSegmentProvider, the way paths are created, and the UrlProvider but I couldn't spot the answer to the following question and I'm hoping someone has some insight. Are any of them position aware? For example if I wanted to have a page that has the URL /a-page But when it has children I want the segment to generate differently /A-page-group/my-child-page for example, Does the UrlSegmentProvider provider know if it is the last one in the call list or if it's somewhere else? Sorry for bad spelling/grammar/explanation, I'm writing this on my phone while travelling. I hope the question makes sense.
m
Dont have Umbraco to hand but does IContentBase has its level or a way of checking for ansectors?
not that that helps with working out if it has children 😄
3 Views