Copied to clipboard

Flag this post as spam?

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


  • mb 9 posts 30 karma points
    Sep 28, 2016 @ 11:07
    mb
    0

    Umbraco events, where does the code go?

    Hi.

    First time looking at using some Umbraco events, particularly ContentService events.

    I understand all about events, and how to subscribe to them, as in this documentation https://our.umbraco.org/documentation/Getting-Started/Code/Subscribing-To-Events/

    Just confused as to how & where to put the code. Watched the videos on umbraco.tv and read various other sites, and it's all done through Visual Studio. Does this mean the site has to be built & published via Visual Studio in the first place?

    Our site (7.3.0) was installed direct on the server from http://umbraco.com/download, how would I go about using events in this situation?

    Thanks, Mike

  • David Peck 690 posts 1896 karma points c-trib
    Sep 28, 2016 @ 11:27
    David Peck
    0

    Hi Mike,

    You'll need to create some .cs files to contain your code yes. You can stick that in the App_Code folder to avoid the need for compiling in Visual Studio if needs be.

  • mb 9 posts 30 karma points
    Sep 28, 2016 @ 12:05
    mb
    0

    Thanks David,

    I'll give that a go first, see how it goes.

    Cheers

Please Sign in or register to post replies

Write your reply to:

Draft