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 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
Comment author was deleted
Can you check the contents of /config/dashboard.config is there a ui-o-matic entry?
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>
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>
Awesome, now it shows something. Do I have to add a reference to some kind of CSS file somewhere?
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' ] }
So the css bit is important, do you have that in the package manifest?
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.
Maybe check the contents then https://github.com/TimGeyssens/UIOMatic/blob/v2/src/UIOMatic/Web/UI/App_Plugins/UIOMatic/backoffice/assets/css/uiomatic.css
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?
Yeah could be :) did you upgrade perhaps?
Indeed, I upgraded UI-O-MATIC to v2.0.2. Will that create this problem?
Thanks for the helping! :)
Yeah css and js is heavily cached so must be that you where still serving old versions of the file, glad it's fixed :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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.
Am I doing something wrong?
Kind regards,
Yanick
Comment author was deleted
Can you check the contents of /config/dashboard.config is there a ui-o-matic entry?
Nope, there is not (yet).
My dashboard.config looks as following:
Comment author was deleted
Add the following then
Awesome, now it shows something. Do I have to add a reference to some kind of CSS file somewhere?
Comment author was deleted
Yeah the package manifest should have the following
Comment author was deleted
So the css bit is important, do you have that in the package manifest?
Hmm, yeah I have this line in my package.manifest:
But if I do Inspect Element in Chrome I do not see any of that CSS appended to the blocks.
Comment author was deleted
Maybe check the contents then https://github.com/TimGeyssens/UIOMatic/blob/v2/src/UIOMatic/Web/UI/App_Plugins/UIOMatic/backoffice/assets/css/uiomatic.css
Hmm, strange enough, when I change in my package.manifest the old line to this line:
and rename my uiomatic.css to uiomatic1.css it works? Maybe it had to do something with the cache?
Comment author was deleted
Yeah could be :) did you upgrade perhaps?
Indeed, I upgraded UI-O-MATIC to v2.0.2. Will that create this problem?
Thanks for the helping! :)
Comment author was deleted
Yeah css and js is heavily cached so must be that you where still serving old versions of the file, glad it's fixed :)
is working on a reply...