I have created a custom section for the administration site for Umbraco 4.0.2.1. I wanted to deploy that using the Package Creator in the developer section. But I don't seem to see any way of adding the files I have created for the section to the package.
Can I create packages for that at all or how do I easily deploy content like that?
Hmmm... ok, that means I need to figure out what the package has to look like, and how the different folders need to be addressed in the app.
So my setup is this:
1) Binary dll. I can deploy that using the normal packager.
2) 6 ascx user controls and one style sheet These need to be deployed in the /umbraco/myapp folder to keep them clearly separated from other stuff. Not sure how to deploy them.
3) Images for the tree and the app. These need to be in the /umbraco/images/umbraco folder. Not sure how I will deploy them.
4) Add a key to the web.config connection strings section. This I can do using the normal packager right?
5) Potentially create some tables in the database defined in step 4. Not sure I really need to, as I can do this in another binary that I will have to deploy as well.
1, 2 and 3 can be done with the packager (you can add multiple files in any folder), 4 is probably a package action, 5 is certainly a package action.
If you create tables from your dll, then they will not get created until that dll is first called. I would definately prefer the required tables to be created at install time.
I see a problem here. Most installation do not have write-access to the umbraco-folder. That means, if you install a package which wants to put files there, it will most likely fail. Same goes for the web.config. I think a lot of people remove the write-access once the site is live (no need for write access then anymore). Perhaphs you can use a config-file in the config-folder for your lines? I know I would prefer that.
As for installation, you can include a procedure that gets executed upon installation. Just include a procedure in your dll that holds all the install-actions. You can call it from the package.xml file. That means you manually need to edit that file (I don't think you can enter that data in the package-creator).
I have created a project on codeplex for the application that I am creating so you can take a peek if you want to.
Basically a client of mine needed a more advanced way of keeping tabs on the emails that were sent from the website. They needed to know if there were errors when sending, and perhaps try to resend the mails if they failed. So I created a mailqueue in the database, that was emptied by a windows service, and then they would have the option to look though the log in the umbraco admin interface.
Only the actual queue is in production now, and that isn't the verision you see in this application. A few change requests have been added to this, but haven't been tested yet. So although this seems to work it is nowhere neer being redy for public consumption.
I haven't made any releases yet, there is a planned release that you can find by clicking "planned" on your right on the downloads tab of the project. It is a zip file with a manual setup for this application.
I am not sure that I will have time to work on the release right now (before september some time), but if anyone would like to have a look and even better offer comments, then I would be very happy.
Packages for custom sections
Hi guys,
I have created a custom section for the administration site for Umbraco 4.0.2.1. I wanted to deploy that using the Package Creator in the developer section. But I don't seem to see any way of adding the files I have created for the section to the package.
Can I create packages for that at all or how do I easily deploy content like that?
/RasB
I am not sure, but at the very least you can go to the "package files" tab and select the files you need.
Other than that, a custom section might require you to use some of the package actions.
Hmmm... ok, that means I need to figure out what the package has to look like, and how the different folders need to be addressed in the app.
So my setup is this:
1) Binary dll.
I can deploy that using the normal packager.
2) 6 ascx user controls and one style sheet
These need to be deployed in the /umbraco/myapp folder to keep them clearly separated from other stuff.
Not sure how to deploy them.
3) Images for the tree and the app.
These need to be in the /umbraco/images/umbraco folder.
Not sure how I will deploy them.
4) Add a key to the web.config connection strings section.
This I can do using the normal packager right?
5) Potentially create some tables in the database defined in step 4. Not sure I really need to, as I can do this in another binary that I will have to deploy as well.
/RasB
1, 2 and 3 can be done with the packager (you can add multiple files in any folder), 4 is probably a package action, 5 is certainly a package action.
If you create tables from your dll, then they will not get created until that dll is first called. I would definately prefer the required tables to be created at install time.
I see a problem here. Most installation do not have write-access to the umbraco-folder. That means, if you install a package which wants to put files there, it will most likely fail. Same goes for the web.config. I think a lot of people remove the write-access once the site is live (no need for write access then anymore). Perhaphs you can use a config-file in the config-folder for your lines? I know I would prefer that.
As for installation, you can include a procedure that gets executed upon installation. Just include a procedure in your dll that holds all the install-actions. You can call it from the package.xml file. That means you manually need to edit that file (I don't think you can enter that data in the package-creator).
Just my 2 cents here!
Good point!
Hi guys,
I have created a project on codeplex for the application that I am creating so you can take a peek if you want to.
Basically a client of mine needed a more advanced way of keeping tabs on the emails that were sent from the website. They needed to know if there were errors when sending, and perhaps try to resend the mails if they failed. So I created a mailqueue in the database, that was emptied by a windows service, and then they would have the option to look though the log in the umbraco admin interface.
Only the actual queue is in production now, and that isn't the verision you see in this application. A few change requests have been added to this, but haven't been tested yet. So although this seems to work it is nowhere neer being redy for public consumption.
You can see the project here:
http://advumbracomailqueue.codeplex.com
I haven't made any releases yet, there is a planned release that you can find by clicking "planned" on your right on the downloads tab of the project. It is a zip file with a manual setup for this application.
/RasB
is working on a reply...