Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gert 81 posts 288 karma points
    Dec 22, 2014 @ 10:44
    Gert
    0

    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

    enter image description here

    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

    enter image description here

    Kind Regards, Gert.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Dec 22, 2014 @ 11:15
    Jan Skovgaard
    0

    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

  • Gert 81 posts 288 karma points
    Dec 22, 2014 @ 14:12
    Gert
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft