Problems, Site structur requiers redirect... Options
Anders
Posted: Monday, September 24, 2007 9:05:38 PM

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
drobar
Posted: Monday, September 24, 2007 11:21:10 PM

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.com

cheers,
doug.

MVP 2007-2009 - Percipient Studios
Anders
Posted: Tuesday, September 25, 2007 6:14:38 PM

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
neehouse
Posted: Tuesday, September 25, 2007 7:07:28 PM

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 •
neehouse
Posted: Tuesday, September 25, 2007 7:13:13 PM

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.xslt

You 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 •
SoerenS
Posted: Tuesday, September 25, 2007 7:30:53 PM

Rank: Fanatic

Joined: 7/25/2006
Posts: 433
Location: Silkeborg, Denmark
You can try my redirect package:
http://www.afdeling18.dk/umbraco-development/umbredirect.aspx

It 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?
Anders
Posted: Tuesday, September 25, 2007 8:02:37 PM

Rank: Devotee

Joined: 5/24/2007
Posts: 72
Location: Kalix, Sweden
Nice, thanks guys.

Will try out you suggestions.

Umbraco Certified Professional
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.