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 have made a custom package which I would like to publish with a custom package action.
For my custom package action I have created a new class that inherits from IPackageAction.
IPackageAction
public class PackageActions : IPackageAction { // stuff... }
This is located in my package dll that I include in the package.
Will this run automatically if you install the package or do I need to add something in the actions tab of my package?
/Michaël
Comment author was deleted
Yeah you need to add a snippet of xml to the package action bit of your package, otherwise it will not run (here are some samples https://our.umbraco.org/wiki/how-tos/packages-and-projects/package-action-samples )
Hi Tim,
I have added the following action into my package.xml:
<Action runat="install" undo="true" alias="uContentMap"></Action>
It should add a new section direclty after the dashBoard element in Dashboard.config.
section
dashBoard
Dashboard.config
How can I debug this to see what is wrong?
Unfortunately this page is 404ing. I can't seem to find the how-tos for package actions, any idea where they might have run off to?
You can use the package action tester from Richard https://our.umbraco.org/projects/developer-tools/package-action-tester/
didn't know about this plugin! Thanks for the intel!
Now it works like a charm!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Publish package with custom Package actions
Hi,
I have made a custom package which I would like to publish with a custom package action.
For my custom package action I have created a new class that inherits from
IPackageAction
.This is located in my package dll that I include in the package.
Will this run automatically if you install the package or do I need to add something in the actions tab of my package?
/Michaël
Comment author was deleted
Yeah you need to add a snippet of xml to the package action bit of your package, otherwise it will not run (here are some samples https://our.umbraco.org/wiki/how-tos/packages-and-projects/package-action-samples )
Hi Tim,
I have added the following action into my package.xml:
It should add a new
section
direclty after thedashBoard
element inDashboard.config
.How can I debug this to see what is wrong?
/Michaël
Hi Tim,
Unfortunately this page is 404ing. I can't seem to find the how-tos for package actions, any idea where they might have run off to?
Comment author was deleted
You can use the package action tester from Richard https://our.umbraco.org/projects/developer-tools/package-action-tester/
Hi Tim,
didn't know about this plugin! Thanks for the intel!
Now it works like a charm!
/Michaël
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.