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 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).
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:
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).
is working on a reply...