Does anyone know if there is an API or Event for the "Cultures and hostnames" dialog in Umbraco 7s back office?
What I want to do is add the hostname entry to the bindings section in IIS programatically when someone saves a hostname in Umbraco. Which will remove the need to do it manually in an RDP session.
Dan that looks awesome! Where do I implement it? Can it go straight into a class of my choosing, or will it need to be raised in the application event handler?
Cultures and hostnames API/Event in Umbraco 7
Does anyone know if there is an API or Event for the "Cultures and hostnames" dialog in Umbraco 7s back office?
What I want to do is add the hostname entry to the bindings section in IIS programatically when someone saves a hostname in Umbraco. Which will remove the need to do it manually in an RDP session.
Thanks in advance
Martin
Hi Martin,
This should do the trick I think:
There are a couple more events on the Domain class too like AfterSave and BeforeSave which might come in handy.
Thanks, Dan.
Dan that looks awesome! Where do I implement it? Can it go straight into a class of my choosing, or will it need to be raised in the application event handler?
Kind regards
Martin
Hi Martin,
You could probably create a new ApplicationEventHandler class which setups up the event delegate when the application has started:
Thanks, Dan.
is working on a reply...