Is it possible to read content properties at startup via an application event handler
I am wondering if it's possible to read content properties at startup via an application event handler. I have a settings node which holds general settings and I want to store these settings in some kind of static configuration class at start up.
Below is a screenshot of the settings node
When I try to get the content type of the EmailSettings node, I get an exeption (see screenshot). Does anybody have an idea how this should be done? Thanks
I know about events on application startup, I was just wondering if it's possible to read content properties from Pages on start up, and not when content is published. I don't know how to access that information on start up.
Is it possible to read content properties at startup via an application event handler
I am wondering if it's possible to read content properties at startup via an application event handler. I have a settings node which holds general settings and I want to store these settings in some kind of static configuration class at start up.
Below is a screenshot of the settings node
When I try to get the content type of the EmailSettings node, I get an exeption (see screenshot). Does anybody have an idea how this should be done? Thanks
Kind Regards, Gert.
Hi Gert
I believe it should be possible if I don't misunderstand something - Have you seen this page in the documentation about events on application startup? http://our.umbraco.org/Documentation/Reference/Events-v6/Application-Startup
Also there might be some useful information in this blogpost by Warren Buckley http://creativewebspecialist.co.uk/2014/06/23/what-on-earth-is-umbraco-servervariables-parsing/
Hope this helps.
/Jan
Hi Jan,
I know about events on application startup, I was just wondering if it's possible to read content properties from Pages on start up, and not when content is published. I don't know how to access that information on start up.
Thanks! Gert.
is working on a reply...