Copied to clipboard

Flag this post as spam?

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


  • Craig O'Mahony 364 posts 918 karma points
    Dec 14, 2017 @ 13:34
    Craig O'Mahony
    0

    Custom tab section

    Hi Folks,

    I'm trying to create a new Section in the back office which I've managed to do with a class

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using umbraco.businesslogic;
    using umbraco.interfaces;
    
    namespace ICT_Web.CustomSections
    {
        [Application("salesforce","SalesForce", "icon-wrench", 1)]
        public class SalesForce : IApplication
        {
        }
    
    }
    

    Which has created the entry in the applications.config

    <add alias="salesforce" name="SalesForce" icon="icon-wrench" sortOrder="1" />
    

    I've assigned this new section to my Umbraco login so that when I log in i can see and select the section:

    enter image description here

    Where I'm stuck is how to create a tab and once created I'd like to load in a view and I just can't seem to get that to work. I believe that I've got to change the dashboard.config but no matter what I seem to do nothing is reflected in the back office.

    Could someone shed any light please?

    thanks, C

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Dec 14, 2017 @ 13:47
    Kevin Jump
    100

    Hi

    yes to get the dashboard file to load the section the area will have to match the alias of your application, so adding the following to the dashboards.config should work.

      <section alias="MySalesForceDashboard">
        <areas>
          <area>salesforce</area>
        </areas>
        <tab caption="Salesforce Tab">
          <control>
            /App_Plugins/Salesforce/dashboard.html
          </control>
        </tab>
      </section>
    

    you can tell if the config is working even if the file is missing as you would get a red box across the bottom in umbraco if it can't find the file.

  • Craig O'Mahony 364 posts 918 karma points
    Dec 14, 2017 @ 14:07
    Craig O'Mahony
    0

    You, my friend, are a superstar!

Please Sign in or register to post replies

Write your reply to:

Draft