I am setting up a site that is divided up into groups of pages, for example
Content
Home
Pet owners
Specialist Referral Service
Cardiology
Oncolgy
etc
Your visit
Where are we?
What to expect
Veterinary Professionals
How to refer
Who to contact
Our team
etc
As you can see, I have the 'Home', 'Pet owners' and 'Veterinary Professionals' on the same level. I then have 'Specialist Referral Services' an 'Your vist' on the next level. They are grouped like this, but do not actually navigate to 'Specialist Referral Services' it will go to the first page under that grouping, in this case 'Cardiology'.
Grouping pages
Forgive me for asking a basic question.... but
I am setting up a site that is divided up into groups of pages, for example
Content
Home
Pet owners
Specialist Referral Service
Cardiology
Oncolgy
etc
Your visit
Where are we?
What to expect
Veterinary Professionals
How to refer
Who to contact
Our team
etc
As you can see, I have the 'Home', 'Pet owners' and 'Veterinary Professionals' on the same level. I then have 'Specialist Referral Services' an 'Your vist' on the next level. They are grouped like this, but do not actually navigate to 'Specialist Referral Services' it will go to the first page under that grouping, in this case 'Cardiology'.
I do not want it to have an introduction page.
How am I best advised to set this up.
Many thanks
Hey Lee,
In the template for 'Specialist Referral Service' add the following code to redirect you to the first child node.
<script runat="server">protected void Page_Load(object sender, EventArgs e){var current = umbraco.NodeFactory.Node.GetCurrent();if (current != null){var child = current.ChildrenAsList.FirstOrDefault();if (child != null){var url = child.Url;if (!string.IsNullOrEmpty(url)){Response.Redirect(url, true);}}}}</script> RichHi, Lee. As far as I understand you're talking about quite a typical pattern that's described here: http://our.umbraco.org/wiki/how-tos/creating-content-folders
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.