Sub-page navigation with full path (site.com/page/subpage/etc) how?? Options
mkjones
Posted: Thursday, January 03, 2008 4:29:35 PM
Rank: Enthusiast

Joined: 5/14/2007
Posts: 30
:blush: Kind of confused about this one?

I have a site structure like this:

- Home
-- About
-- Contact
- Patients
-- Info
-- Details
-- Beds
- Help
-- Who can help
-- Who cant

To make this usable I have a simple 2 menu structure using XSLT to bring back the root pages, i.e.:

Home Patients Help

Then when you drill down I have a 2nd navigation which displays the sub-pages for the root:

Home 'Patients' Help

-- Info
-- Details
-- Beds

It works OK apart from the URL of the sub-pages DOES NOT contain the parent path?

For example, 'Beds' under 'Patients' is www.site.com/beds/ and NOT www.site.com/patients/beds/

If anyone can help me mod my XSLT that would be wonderful :tease:

drobar
Posted: Thursday, January 03, 2008 8:57:35 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,698
Location: KY, USA
In the web.config file, change umbracoHideTopLevelNodeFromPath setting to false and your top level nodes (home, patients, etc.) will be included in the url. There is nothing wrong with your xslt.

<add key="umbracoHideTopLevelNodeFromPath" value="true" />

becomes...

<add key="umbracoHideTopLevelNodeFromPath" value="false" />

cheers,
doug.

MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
mkjones
Posted: Friday, January 04, 2008 12:19:45 PM
Rank: Enthusiast

Joined: 5/14/2007
Posts: 30
Thanks :w00t: you certainly know your stuff ;)
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.