Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
I'm trying to add a custom section, as per http://www.enkelmedia.se/blogg/2013/11/22/creating-custom-sections-in-umbraco-7-part-1.aspx
[Application("HorizonHelp", "HorizonHelp", "icon-help-alt", 15)] public class HorizonHelpSection:IApplication { }
my applications.config:
<add alias="HorizonHelp" name="HorizonHelp" icon="icon-help-alt" sortOrder="15" />
my controller (just cribbed from the demo code):
public class HorizonHelpTreeController : TreeController { protected override TreeNodeCollection GetTreeNodes(string id, FormDataCollection queryStrings) { var nodes = new TreeNodeCollection(); var item = this.CreateTreeNode("dashboard", id, queryStrings, "My item", "icon-truck", true); nodes.Add(item); return nodes; } protected override MenuItemCollection GetMenuForNode(string id, FormDataCollection queryStrings) { var menu = new MenuItemCollection(); //menu.DefaultMenuAlias = ActionNew.Instance.Alias; //menu.Items.Add<ActionNew>("Create"); return menu; } }
my trees.config
<add initialize="true" sortOrder="0" alias="HorizonHelp" application="HorizonHelp" title="Horizon Help" iconClosed="icon-folder" iconOpen="icon-folder-open" type="Umbraco.Extensions.Events.HorizonHelpTreeController, Umbraco.Extensions" />
Now when i nav to the dashboard, the custom section doesnt show up in the sections list in the user area, although I can navigate there by url
So my question are
I've tried deleting the temp folder, updating the client dependency, touching the web.config but still no joy
help!
thank
Hi there
Have you remembered to provide access to the custom section in the "Users" section? This is usually what people tends to forget - I have forgotten it many times.
Hope this helps.
/Jan
Hi Jan
thanks for the reply - the problem is, it's not even showing up in the section list, so i cant grant access as there's nothing to select!
Any ideas why it's not showing up?
thanks
ian
Hi Ian
Hmm, not sure what the issue might be then - I have had a look at your code and it seems fine to me at a first glance.
Have you tried simply clearing the browser cache or recycle the app pool to see if it will then appear?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
custom section not showing in list - v7.1.8
Hi
I'm trying to add a custom section, as per http://www.enkelmedia.se/blogg/2013/11/22/creating-custom-sections-in-umbraco-7-part-1.aspx
my applications.config:
my controller (just cribbed from the demo code):
my trees.config
Now when i nav to the dashboard, the custom section doesnt show up in the sections list in the user area, although I can navigate there by url
So my question are
I've tried deleting the temp folder, updating the client dependency, touching the web.config but still no joy
help!
thank
Hi there
Have you remembered to provide access to the custom section in the "Users" section? This is usually what people tends to forget - I have forgotten it many times.
Hope this helps.
/Jan
Hi Jan
thanks for the reply - the problem is, it's not even showing up in the section list, so i cant grant access as there's nothing to select!
Any ideas why it's not showing up?
thanks
ian
Hi Ian
Hmm, not sure what the issue might be then - I have had a look at your code and it seems fine to me at a first glance.
Have you tried simply clearing the browser cache or recycle the app pool to see if it will then appear?
/Jan
is working on a reply...