Copied to clipboard

Flag this post as spam?

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


  • Yanick Van Barneveld 27 posts 148 karma points
    Nov 17, 2016 @ 08:57
    Yanick Van Barneveld
    0

    ShowOnSummaryDashboard

    Hi,

    I want to show my Event POCO on the dashboard of UI-O-MATIC. But when I add "ShowOnSummaryDashboard = true", like the example below it does not work.

    [UIOMatic("event", "Evenementen", "Evenement", FolderIcon = "icon-users", ItemIcon = "icon-user", RenderType = UIOMaticRenderType.List, SortColumn = "Begintime", SortOrder = "asc", ShowOnSummaryDashboard = true)]
    

    Am I doing something wrong?

    Kind regards,
    Yanick

  • Tim Geyssens 6419 posts 15020 karma points MVP 2x c-trib
    Nov 17, 2016 @ 09:00
    Tim Geyssens
    0

    Can you check the contents of /config/dashboard.config is there a ui-o-matic entry?

  • Yanick Van Barneveld 27 posts 148 karma points
    Nov 17, 2016 @ 09:01
    Yanick Van Barneveld
    0

    Nope, there is not (yet).
    My dashboard.config looks as following:

    <?xml version="1.0" encoding="utf-8"?>
    <dashBoard>
    
      <section alias="StartupSettingsDashboardSection">
        <areas>
          <area>settings</area>
        </areas>
        <tab caption="Welcome">
          <control showOnce="true" addPanel="true" panelCaption="">
            views/dashboard/settings/settingsdashboardintro.html
          </control>
        </tab>
      </section>
    
      <section alias="StartupFormsDashboardSection">
        <areas>
          <area>forms</area>
        </areas>
        <tab caption="Install Umbraco Forms">
          <control showOnce="true" addPanel="true" panelCaption="">
            views/dashboard/forms/formsdashboardintro.html
          </control>
        </tab>
      </section>
    
      <section alias="StartupDeveloperDashboardSection">
        <areas>
          <area>developer</area>
        </areas>
        <tab caption="Get Started">
          <control showOnce="true" addPanel="true" panelCaption="">
            views/dashboard/developer/developerdashboardvideos.html
          </control>
        </tab>
        <tab caption="Examine Management">
          <control>
            views/dashboard/developer/examinemanagement.html
          </control>
        </tab>
      </section>
    
      <section alias="StartupMediaDashboardSection">
        <areas>
          <area>media</area>
        </areas>
        <tab caption="Content">
          <control showOnce="false" addPanel="false" panelCaption="">
            views/dashboard/media/mediafolderbrowser.html
          </control>
        </tab>
    
      </section>
    
      <section alias="StartupDashboardSection">
        <access>
          <deny>translator</deny>
        </access>
        <areas>
          <area>content</area>
        </areas>
        <tab caption="Get Started">
          <access>
            <grant>admin</grant>
          </access>
    
          <control showOnce="true" addPanel="true" panelCaption="">
            views/dashboard/default/startupdashboardintro.html
          </control>
    
        </tab>
      </section>
    
      <section alias="StartupMemberDashboardSection">
        <areas>
          <area>member</area>
        </areas>
        <tab caption="Get Started">
          <control showOnce="true" addPanel="true" panelCaption="">
            views/dashboard/members/membersdashboardvideos.html
          </control>
        </tab>
      </section>
    
      <section alias="UmbracoModelsBuilder">
        <areas>
          <area>developer</area>
        </areas>
        <tab caption="Models Builder">
          <control>
            /App_Plugins/ModelsBuilder/modelsbuilder.htm
          </control>
        </tab>
      </section>
    
      <section alias="UmbracoHealthCheck">
        <areas>
          <area>developer</area>
        </areas>
        <tab caption="Health Check">
          <control>
            views/dashboard/developer/healthcheck.html
          </control>
        </tab>
      </section>
      <section alias="RedirectUrlManagement">
        <areas>
          <area>content</area>
        </areas>
        <tab caption="Redirect URL Management">
          <control>
            views/dashboard/developer/redirecturls.html
          </control>
        </tab>
      </section>
    </dashBoard>
    
  • Tim Geyssens 6419 posts 15020 karma points MVP 2x c-trib
    Nov 17, 2016 @ 09:02
    Tim Geyssens
    100

    Add the following then

      <section alias="UIOMaticSummaryDashboard">
    <areas>
      <area>uiomatic</area>
    </areas>
    <tab caption="Summary">
      <control>../app_plugins/uiomatic/backoffice/views/dashboards/summarydashboard.html</control>
    </tab>
    </section>
    
  • Yanick Van Barneveld 27 posts 148 karma points
    Nov 17, 2016 @ 09:05
    Yanick Van Barneveld
    0

    Awesome, now it shows something. Do I have to add a reference to some kind of CSS file somewhere? example

  • Tim Geyssens 6419 posts 15020 karma points MVP 2x c-trib
    Nov 17, 2016 @ 09:07
    Tim Geyssens
    0

    Yeah the package manifest should have the following

    {
    propertyEditors: [
        {
            alias: "UIOMatic.MultiPicker",
            name: "UIOMatic Multi Picker",
            editor: {
            view: "~/App_Plugins/UIOMatic/backoffice/views/propertyeditors/multipicker.html"
            },
            prevalues: {
                fields: [
                    {
                        label: "Type of object",
                        description: "Select the type of object",
                        key: "typeAlias",
                        view: "~/App_Plugins/UIOMatic/backoffice/views/propertyeditors/pickers.type.html"
                    },
                    {
                        label: "Text template",
                        description: "Enter the text template, ie, '{{FirstName}} {{LastName}}'",
                        key: "textTemplate",
                        view: "requiredfield",
                        validation: [
                            {
                                type: "Required" 
                            }                        
                        ]
                    }
                ]
            }
    
        },
        {
        alias: "UIOMatic.Dropdown",
        name: "UIOMatic Dropdown",
        editor: {
        view: "~/App_Plugins/UIOMatic/backoffice/views/propertyeditors/dropdown.html"
        },
        prevalues: {
            fields: [
                {
                    label: "Type of object",
                    description: "Select the type of object (reload the page after selecting to populate dropdowns)",
                    key: "typeAlias",
                    view: "~/App_Plugins/UIOMatic/backoffice/views/propertyeditors/pickers.type.html"
                },
                {
                    label: "Value property",
                    description: "Property that holds the value you wish to store",
                    key: "valueColumn",
                    view: "~/App_Plugins/UIOMatic/backoffice/views/propertyeditors/pickers.property.html"
    
                },
                {
                    label: "Text template",
                    description: "Enter the text template, ie, '{{FirstName}} {{LastName}}'",
                    key: "textTemplate",
                    view: "requiredfield",
                    validation: [
                        {
                            type: "Required" 
                        }                        
                    ]
                },
                {
                    label: "Column to sort on",
                    description: "Enter the column name to sort on",
                    key: "sortColumn",
                    view: "~/App_Plugins/UIOMatic/backoffice/views/propertyeditors/pickers.column.html"                      
                },
                {
                    label: "Sort order",
                    description: "Select the sortorder",
                    key: "sortOrder",
                    view: "~/App_Plugins/UIOMatic/backoffice/views/propertyeditors/picker.tablesortorder.html"                       
                }
            ]
        }
        }
    ]
    ,
    javascript: [
        '~/App_Plugins/UIOMatic/backoffice/assets/js/angular-relative-date.js',
    
        '~/App_Plugins/UIOMatic/backoffice/imports.js',
    
        '~/App_Plugins/UIOMatic/backoffice/services/utility.service.js',
    
        '~/App_Plugins/UIOMatic/backoffice/directives/pagination.directive.js',
    
        '~/App_Plugins/UIOMatic/backoffice/resources/uioMaticObject.resource.js',
        '~/App_Plugins/UIOMatic/backoffice/resources/uioMaticField.resource.js',
        '~/App_Plugins/UIOMatic/backoffice/resources/uioMaticPropertyEditor.resource.js',
    
        '~/App_Plugins/UIOMatic/backoffice/uiomatic/edit.controller.js',
        '~/App_Plugins/UIOMatic/backoffice/uiomatic/delete.controller.js', 
        '~/App_Plugins/UIOMatic/backoffice/uiomatic/list.controller.js',
    
        '~/App_Plugins/UIOMatic/backoffice/views/fieldeditors/file.controller.js',
        '~/App_Plugins/UIOMatic/backoffice/views/fieldeditors/datetime.controller.js',
        '~/App_Plugins/UIOMatic/backoffice/views/fieldeditors/dropdown.controller.js',
        '~/App_Plugins/UIOMatic/backoffice/views/fieldeditors/pickers.content.controller.js',
        '~/App_Plugins/UIOMatic/backoffice/views/fieldeditors/pickers.media.controller.js',
        '~/App_Plugins/UIOMatic/backoffice/views/fieldeditors/pickers.member.controller.js',
        '~/App_Plugins/UIOMatic/backoffice/views/fieldeditors/pickers.user.controller.js',
        '~/App_Plugins/UIOMatic/backoffice/views/fieldeditors/pickers.users.controller.js',
        '~/App_Plugins/UIOMatic/backoffice/views/fieldeditors/checkboxlist.controller.js',
        '~/App_Plugins/UIOMatic/backoffice/views/fieldeditors/radiobuttonlist.controller.js',
        '~/App_Plugins/UIOMatic/backoffice/views/fieldeditors/label.controller.js',
        '~/App_Plugins/UIOMatic/backoffice/views/fieldeditors/list.controller.js',
        '~/App_Plugins/UIOMatic/backoffice/views/fieldeditors/rte.controller.js',
        '~/App_Plugins/UIOMatic/backoffice/views/fieldeditors/map.controller.js',
    
        '~/App_Plugins/UIOMatic/backoffice/views/fieldfilters/dropdown.controller.js',
    
        '~/App_Plugins/UIOMatic/backoffice/views/propertyeditors/dropdown.controller.js',
        '~/App_Plugins/UIOMatic/backoffice/views/propertyeditors/multipicker.controller.js',
        '~/App_Plugins/UIOMatic/backoffice/views/propertyeditors/pickers.type.controller.js',
        '~/App_Plugins/UIOMatic/backoffice/views/propertyeditors/pickers.property.controller.js',
        '~/App_Plugins/UIOMatic/backoffice/views/propertyeditors/pickers.column.controller.js',
        '~/App_Plugins/UIOMatic/backoffice/views/propertyeditors/objectsearcher.controller.js',
    
        '~/App_Plugins/UIOMatic/backoffice/views/dashboards/summarydashboard.controller.js',        
    ],
    css: [
        '~/App_Plugins/UIOMatic/backoffice/assets/css/uiomatic.css'
    ]
    
    }
    
  • Tim Geyssens 6419 posts 15020 karma points MVP 2x c-trib
    Nov 17, 2016 @ 09:08
    Tim Geyssens
    0

    So the css bit is important, do you have that in the package manifest?

  • Yanick Van Barneveld 27 posts 148 karma points
    Nov 17, 2016 @ 09:19
    Yanick Van Barneveld
    0

    Hmm, yeah I have this line in my package.manifest:

    css: [
        '~/App_Plugins/UIOMatic/backoffice/assets/css/uiomatic.css'
    ]
    

    But if I do Inspect Element in Chrome I do not see any of that CSS appended to the blocks.

  • Tim Geyssens 6419 posts 15020 karma points MVP 2x c-trib
    Nov 17, 2016 @ 09:21
  • Yanick Van Barneveld 27 posts 148 karma points
    Nov 17, 2016 @ 09:24
    Yanick Van Barneveld
    0

    Hmm, strange enough, when I change in my package.manifest the old line to this line:

    css: [
        '~/App_Plugins/UIOMatic/backoffice/assets/css/uiomatic1.css'
    ]
    

    and rename my uiomatic.css to uiomatic1.css it works? Maybe it had to do something with the cache?

  • Tim Geyssens 6419 posts 15020 karma points MVP 2x c-trib
    Nov 17, 2016 @ 09:25
    Tim Geyssens
    1

    Yeah could be :) did you upgrade perhaps?

  • Yanick Van Barneveld 27 posts 148 karma points
    Nov 17, 2016 @ 09:35
    Yanick Van Barneveld
    0

    Indeed, I upgraded UI-O-MATIC to v2.0.2. Will that create this problem?

    Thanks for the helping! :)

  • Tim Geyssens 6419 posts 15020 karma points MVP 2x c-trib
    Nov 17, 2016 @ 09:36
    Tim Geyssens
    1

    Yeah css and js is heavily cached so must be that you where still serving old versions of the file, glad it's fixed :)

Please Sign in or register to post replies

Write your reply to:

Draft