Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Eric Bergquist 18 posts 48 karma points
    Aug 29, 2013 @ 22:31
    Eric Bergquist
    0

    Add a Custom Section Umbraco 6.1.4

    Hi everyone

    I am struggling to add a new section to the umbraco interface. I have created a new class (which is in the App_Code folder)

     

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;

    using umbraco.businesslogic;
    using umbraco.interfaces;

    [Application("documents", "Documents", ".traydocuments", 7)]
    public class UserDocuments : IApplication {
        public UserDocuments() {

        }
    }

     

    When I look in the application.config file after the app pool has been refreshed it has added the entry to the file. I have also updated the traysprite.png file for the new icon and updated the umbracoGui.css file for the new class. Two things seem to be happening:

    1. It does not seem to read the css file change and there fore the new icon doesn't display. When I look at this it seems the styles are being read from a webresource.

    2. It doesn't appear to be reading the name section of the Application attributes - it seems to read the appAlias and then displays the name as [documents]

    Any help pr suggestions would be greatly appreicated

    Many thanks

    Eric

  • Jason Prothero 422 posts 1243 karma points MVP c-trib
    Aug 30, 2013 @ 23:47
    Jason Prothero
    0

    Something like this worked for me after I added the newly installed section to my User's section:

     

    using System;

    using System.Collections.Generic;

    using System.Linq;

    using System.Web;

    using umbraco.businesslogic;

    using umbraco.interfaces;

     

    namespace XXX.Web.UI.Trees

    {

        [Application("myplugin", "MyPlugin", "MyPlugin-Icon.gif", 10)]

        public class MyPlugin : IApplication

        {

        }

     

    }

Please Sign in or register to post replies

Write your reply to:

Draft