I have a Umbraco structure like: Content/Folder/Pages
I can access all the pages fine but on a url of /domain/page-name. I want to include the folder in the url like /domain/Folder/page-name. When I view the contents of NiceUrl it contains domain/page-name.
Usually the folder would be part of the url but can't remember if there has perhaps been a change so that document types without an assigned template is perhaps left out.
NiceUrl does not contain folder in path
Hi,
I have a Umbraco structure like: Content/Folder/Pages
I can access all the pages fine but on a url of /domain/page-name. I want to include the folder in the url like /domain/Folder/page-name. When I view the contents of NiceUrl it contains domain/page-name.
Any idea what I'm doing wrong?
Hi Kal
What version of Umbraco are you using?
Usually the folder would be part of the url but can't remember if there has perhaps been a change so that document types without an assigned template is perhaps left out.
Looking forward to hearing from you.
/Jan
Hi Jan,
I'm using Umbraco 6.2.0.
Thanks.
Hi Kal
What does your code for grabbing the url look like?
/Jan
Hi Jan,
I've got a list for the node...
DynamicNode pageStart = Library.NodeById(1100);
var pages = pageStart.GetChildrenAsList;
and then access NiceUrl as pages[i].NiceUrl which gives me '/page-name/'. If I try browsing to '/folder/page-name' I get a 404.
Thanks.
in the web.config <add key="umbracoHideTopLevelNodeFromPath" value="true" />
Could this be the issue, that by default umbraco removes the top level node from the path?
Kai,
What are you using as your folder structure? Is it a package?
When you say you cannot access it, what page appears when you try to navigate to it?
"No template exsist..." ?
Charlie :)
Hi Mike,
Works now. I looked through those settings in web.config but didn't think that would have fixed it.
Thanks for your help with this, much appreciated.
Kal.
is working on a reply...