I have a package that comes with an http handler to handle personalized download (/download/file/{some-guid}) that our sales team can use to provide our clients with downloads. Therefore I need to add this directory to the umbracoReservedUrls entry in the appSettings-section of the web.config file. Is there any api way to do it or should I stick to the ASP.NET configuration API to carefully modify the web.config file?
I don't think you can do this at the moment, but you should have a look at the package actions contrib project, you could look at the source code, add your action and contribute to it. :)
atze187, there's a package action to add a appSettings value, but not to update an existing. Grad a copy of the code and add this action. Submit the patch and it'll be included in a next version.
Changing urlrewrite settings on package install?
I have a package that comes with an http handler to handle personalized download (/download/file/{some-guid}) that our sales team can use to provide our clients with downloads. Therefore I need to add this directory to the umbracoReservedUrls entry in the appSettings-section of the web.config file. Is there any api way to do it or should I stick to the ASP.NET configuration API to carefully modify the web.config file?
André
I don't think you can do this at the moment, but you should have a look at the package actions contrib project, you could look at the source code, add your action and contribute to it. :)
atze187, there's a package action to add a appSettings value, but not to update an existing. Grad a copy of the code and add this action. Submit the patch and it'll be included in a next version.
Cheers,
/Dirk
Hi an AddHttpHandler action is allready added to the contrib project. Checkout the documentation
Cheers,
Richard
That's been very useful, thank you all, even though only one of you can get the solution credits ;)
André
is working on a reply...