Anyone got experience with developing and publishing packages?
I want to create and publish a package which just contains some views, partial views, a dll and creates a custom table in the default umbraco database. Does anyone know the best way to go about making this happen in a package please?
on which Umbraco version do you build your stuff?
You can create Umbraco packages from the packages node in the Developer section of Umbraco.
If you want to create a nuget package that is also possible.
Depends on how your code is executed in your DLL.
And a bit trickier as you need an xml file which is created by Umbraco when you download the zip of the package created within the backoffice.
these are baked into umbraco and how umbraco does its own upgrades. they also have the advantage of working for both package installs and nuget installs.
Anyone got experience with developing and publishing packages?
I want to create and publish a package which just contains some views, partial views, a dll and creates a custom table in the default umbraco database. Does anyone know the best way to go about making this happen in a package please?
Thanks
Paul
Hi Paul,
on which Umbraco version do you build your stuff? You can create Umbraco packages from the packages node in the Developer section of Umbraco.
If you want to create a nuget package that is also possible. Depends on how your code is executed in your DLL. And a bit trickier as you need an xml file which is created by Umbraco when you download the zip of the package created within the backoffice.
Where do you get stuck specifically?
Regards David
Hi David I build on the latest version usually. I have a package which works with 7.4+
My latest idea is in a 7.5x site at the moment.
I've been given help on how to insert and remove config settings today, so that was useful.
Ideally what I really want to know is how I can create a table in the default database when the user installs the package.
Kind regards
Paul
Hi,
for creating tables / config, you should look at migrations. https://cultiv.nl/blog/using-umbraco-migrations-to-deploy-changes/
these are baked into umbraco and how umbraco does its own upgrades. they also have the advantage of working for both package installs and nuget installs.
i also have some demo migration stuff in a github repo that might help https://github.com/KevinJump/UmbracoMigrationsDemo/tree/master/Migrations/Migrations
is working on a reply...