Posts

Showing posts from August, 2012

Umbraco: Enable Blockquotes in Tinymc Richtext Editor

Here is how to enable Blockquotes in Umbraco Tynymce Rich Text Editor: 1) In the folder "config" there is a file called "tinyMceConfig.config". Add the following lines in the <command> section: <command> <umbracoAlias>Blockquote</umbracoAlias> <icon>images/editor/quote.gif</icon> <tinyMceCommand value="" userInterface="false" frontendCommand="blockquote">blockquote</tinyMceCommand> <priority>45</priority> </command> Note: the line highlighted   points to an image that the user will see.  In my install this was a stop sign!  You may want to overwrite the file with something more appropriate (such as a quote). 2) In Umbraco, goto --> Developer --> Data Types --> RichtextEditor and tick the tick box for the Blockquotes. The end user should now have blockquote functionality in there richtext editor.

Umbraco .NET C# Usercontrol Permenant Redirect to Parent Node

This is the Code behind file to permanantly redirect to a parent node in Umbraco. There is no need to have any controls on the .asxp page. Step 1: Create a .Net User Control called: " RedirectToPARENTnode.aspx " Step 2: Paste the code in to the code behind file (.cs): ( important bits highlighted in yellow ) using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using umbraco; using umbraco.presentation.nodeFactory; namespace MyUserControls.Usercontrols {     public partial class RedirectToPARENTnode : System.Web.UI.UserControl     {         protected void Page_Load(object sender, EventArgs e)         {               //MD 06/08/2012                  ...