|
|
Rank: Newbie
Joined: 5/22/2008 Posts: 21 Location: Slovenia
|
Hi, is it possible in umbraco to redirect from a parent node to first child node. For example i have structure like -Home -- Products --- ProductA --- ProductB --- ProductC Now what i would like to do is that once someone comes to www.mysite.com/products to be redirected to www.mysite.com/products/producta. So that the products folder wont need any content and will just serve as redirecting point to first child node. Cheers, Mitja
|
|
 Rank: Addict
Joined: 9/27/2007 Posts: 977 Location: Belgium
|
Hi, Here's what you really need. Credits go to the author of course. I'm just putting the link here. Regards, /Dirk
level 1 certified - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
|
|
Rank: Newbie
Joined: 5/22/2008 Posts: 21 Location: Slovenia
|
Hm, seems like a good package, but i get few errors from it. First one is from the picker in FireFox: Code:Error: parent.opener.dialogHandler is not a function Source File: http://localhost/umbraco/TreeInit.aspx?app=content&isDialog=true&dialogMode=id&contextMenu=false Line: 12 Happens when i Pick a node to which to redirect. When i click node, nothing happens and error log captures that error. And the second is, when i use IE to pick the node, it works fine, puts this code into TinyMCE: Code:<div umb_macroAlias="Redirect" umb_redirectPermanentlyMoved="1" umb_redirectHumans="1" umb_redirectRobots="1" umb_redirectNodeID="1107" ismacro="true" umbVersionId="47831271-a6df-4f03-bf9a-ddeedb3802b5" umbPageid="1106" contentEditable="false" title="This is rendered content from a macro" onresizestart="return false;" ondblclick="umbracoEditMacro(this);" class="umbMacroHolder mceNonEditable"> <!-- startUmbMacro --><span>No macro content available for WYSIWYG editing</span><!-- endUmbMacro --> </div> And then i want to save the document and i get server side error: Quote:Server Error in '/umbraco' Application. Length cannot be less than zero. Parameter name: length Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length] System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +2916097 umbraco.editorControls.tinymce.TinyMCE.generateMacroTag(String macroContent) +86 umbraco.editorControls.tinymce.TinyMCE.replaceMacroTags(String text) +203 umbraco.editorControls.tinymce.TinyMCE.Save() +67 umbraco.controls.ContentControl.saveClick(Object Sender, ImageClickEventArgs e) +80 umbraco.controls.ContentControl.savePublish(Object Sender, ImageClickEventArgs e) +21 System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +86 System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115 System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
Is this package related error or is something wrong with my Umbraco installation? Thanks Mitja
|
|
 Rank: Umbracoholic
Joined: 9/8/2006 Posts: 1,693 Location: KY, USA
|
Soren's package is excellent. You can also use Casey's redirect package ( http://www.neehouse.com/umbraco_cms/packages/redirect.aspx). And for the simplest redirecting, use the built-in feature: 1. Add a content picker to your document type associated with the products node. 2. Set the alias for the content picker to 'umbracoRedirect' (no quote marks) That's it. On the products page, select the node you want to redirect to, and umbraco will redirect automatically. No packages to install. More details at the end of this rather long thread: http://forum.umbraco.org/yaf_postst4606_How-do-i.aspxEach of these options has strengths so pick the one best suited to your needs. cheers, doug.
MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
|
|
 Rank: Addict
Joined: 9/27/2007 Posts: 977 Location: Belgium
|
Hi, Just gave it a try to redirect my home page (which wasn't holding any info at all) to my umbraco blog section and guess what? It really works like a charm. [Edit]I've used built-in umbracoRedirect option[/Edit] Btw Doug, congratz on your renewed MVP status. Greetz, /Dirk
level 1 certified - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
|
|
Rank: Newbie
Joined: 5/22/2008 Posts: 21 Location: Slovenia
|
The build in umbracoRedirect works perfectly. Thanks.
When I try to call macros from TinyMCE i always get error: "Length cannot be less than zero. Parameter name: length"
Doesn't realy matter what macro. Looking on google i saw there were some questions with this, but couln't find any posts with the solution. Anyone knows what could be wrong, is it the installation, or macro problem, or TinyMCE?
The macro works nice if i put it in template, but from TinyMCE it just trows this errors... :(
Thanks, Mitja
|
|
Rank: Newbie
Joined: 4/23/2008 Posts: 3 Location: Kathmandu
|
Before finding this thread i created a similar usercontrol. It worked on our test domain and when we moved it to the live domain it stopped working. Both resides on the same server.
I don't know the reason why it stopped working and then i found this thread and the usercontrols that are provided also doesn't work. Is there a setting somewhere that needs to be changed?
|
|
Rank: Newbie
Joined: 5/22/2008 Posts: 21 Location: Slovenia
|
After some days I still can't find solution for inserting macro into TinyMCE error. Seems like it doesn't matter what macro it is, it just refuses to save any. Error shown is: Quote:Server Error in '/umbraco' Application. Length cannot be less than zero. Parameter name: length Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length] System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +2916097 umbraco.editorControls.tinymce.TinyMCE.generateMacroTag(String macroContent) +86 umbraco.editorControls.tinymce.TinyMCE.replaceMacroTags(String text) +203 umbraco.editorControls.tinymce.TinyMCE.Save() +67 umbraco.controls.ContentControl.saveClick(Object Sender, ImageClickEventArgs e) +80 System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +86 System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115 System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433 Does anyone know the solution?
|
|
 Rank: Addict
Joined: 9/27/2007 Posts: 977 Location: Belgium
|
drobar wrote:
And for the simplest redirecting, use the built-in feature: 1. Add a content picker to your document type associated with the products node. 2. Set the alias for the content picker to 'umbracoRedirect' (no quote marks)
cheers, doug.
Be aware though if you've had put that redirect on a top level node, you'll soon run into 'FAILURE[object Object]' errors when saving xslt files. Just found out about this today, and found the solution in this threadRegards, /Dirk
level 1 certified - umbraco blog at netaddicts.be - working on an integrated forum4umbraco
|
|
Rank: Newbie
Joined: 5/22/2008 Posts: 21 Location: Slovenia
|
Is there any other way to insert macro into Content node?
I tried the Textbox multiple with macro Div from TinyMCE, saved it but macro didnt show.
Anyone knows how to either find a work around or solve this ?
Thanks, Mitja
|
|
 Rank: Umbracoholic
Joined: 9/8/2006 Posts: 1,693 Location: KY, USA
|
This question seems rather off-topic. Should it have been its own question? The way to insert a macro is either in your Template or in the Richtext Editor. Both have toolbar buttons to help with this. cheers, doug.
MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
|
|
|
Guest |