|
|
 Rank: Devotee
Joined: 5/24/2007 Posts: 72 Location: Kalix, Sweden
|
I have a website design that doesnt work so well with the structure of Umbraco.
The site structure I need is as follows:
* Startpage container (Will hold basic details as site title, language code and such) ** Top level conatiner in menu, only for rendering top menus. *** Pages, these are the acctuall pages.... **** Sub pages and so on... ** Top level conatiner in menu, only for rendering top menus. *** Pages, these are the acctuall pages.... **** Sub pages and so on... ** Top level conatiner in menu, only for rendering top menus. *** Pages, these are the acctuall pages.... **** Sub pages and so on...
* Startpage container (Will hold basic details as site title, language code and such) ** Top level conatiner in menu, only for rendering top menus. *** Pages, these are the acctuall pages.... **** Sub pages and so on...
Here is what I'm after, when the vistor enters the website the first page should be loaded. Ie Startpage/start/starting.aspx. When the user clicks on the top level menu the first child page should be loaded....
I dont want to render a page in a template, I want the redirect to happen. I have tried using the umbracoRedirect but that only breaks the site. It breaks the XSLT editor....
Help, how should I achive this? Basiclly what I want is a Response.Redirect on the startpage to the first page, and a Response.redirect on top level nodes to first child page.
Umbraco Certified Professional
|
|
 Rank: Umbracoholic
Joined: 9/8/2006 Posts: 1,831 Location: MA, USA
|
Check out Casey's redirect package, which is more robust than the built-in version. Available at http://www.neehouse.comcheers, doug.
MVP 2007-2009 - Percipient Studios
|
|
 Rank: Devotee
Joined: 5/24/2007 Posts: 72 Location: Kalix, Sweden
|
Seams his control is for external redirect, any solution where one can use built in content picker or even better a cotrol where one can state to load first child?
Umbraco Certified Professional
|
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,076 Location: Charleston, West Virginia, United States
|
Hi Anders, The XSLT problem you describe is well known... You can create a false node in the first position of the content tree that does not contain the umbracoRedirect property, and that should keep your xslt editor from breaking. As for your specific requirements of having certain nodes showing the first child node, a simple user control may be the solution you need. It will be a few days before I can get to it, but I will see if I can come up with something simple for you. Casey
• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
|
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,076 Location: Charleston, West Virginia, United States
|
Also, if you are not using any usercontrol macros in your template/content, you may be able to use rendertemplate to accomplish your task. see http://neehouse.com/xslt/RenderTemplate.xsltYou may have to modify it a bit to do what you want, but, it should be able to do what you want.
• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
|
|
 Rank: Fanatic
Joined: 7/25/2006 Posts: 433 Location: Silkeborg, Denmark
|
You can try my redirect package: http://www.afdeling18.dk/umbraco-development/umbredirect.aspxIt allows you to pick the node you want to redirect to. Make sure you check all the checkboxes when creating a redirect. They're basically: x Redirect humans (offcourse this should be checked). x Redirect search engines (Yup, sure don't want Google to index that dummy page!). x Permanent redirect (tell Google: "Don't store this URL, page has moved to new location"). All those settings are usefull (only) when you want to do a bit of black hat SEO cloaking and such. :cool: So a bit more advanced that what you probably need, but then again it might solve your problem. /SoerenS Brug for råd til hvordan du driver en god webshop? / Need advice on how to run an effective webshop?
|
|
 Rank: Devotee
Joined: 5/24/2007 Posts: 72 Location: Kalix, Sweden
|
Nice, thanks guys.
Will try out you suggestions.
Umbraco Certified Professional
|
|
|
Guest |