Copied to clipboard

Flag this post as spam?

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


  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Feb 10, 2014 @ 18:52
    Nicholas Westby
    0

    Create Upgrade Package Without Duplicating Dashboard Section?

    I recently created my first package, and it included an action to install a dashboard section. Worked according to plan. However, I then created a second package (to add a new file) that was the second version of the first package. When I installed the second package, it created a duplicate of the dashboard item. I'd like the dashboard item to exist only once, whether somebody is upgrading or installing the package for the first time.

    I followed the instructions here to have the dashboard section be installed: http://our.umbraco.org/wiki/reference/packaging/package-actions/add-dashboard-section

    This is basically what the action in my package.xml file looks like:

    <Actions>
      <Action runat="install" alias="addDashboardSection" dashboardAlias="MyCustomDashboardSection">
        <section>
          <areas>
            <area>content</area>
          </areas>
          <tab caption="My Tab">
            <access>
              <grant>administrator</grant>
            </access>
            <control>/Path/To/UserControl.ascx</control>
          </tab>
        </section>
      </Action>
    </Actions>
  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Mar 04, 2014 @ 00:37
    Nicholas Westby
    0

    I haven't tried it yet, but based on another popular package, it seems like the solution may be to add undo="true" to the Action element. I'm guessing that will remove any previous dashboard section that got installed, and replace it with the new dashboard section (which may just be the same as the old dashboard section).

Please Sign in or register to post replies

Write your reply to:

Draft