However, after watching the related Umbraco TV guide as well (http://umbraco.tv/videos/umbraco-v7/developer/extending/events/subscribing-to-an-event/) I realized this is all being done in Visual Studio. Is there a way to get an example, or at least get pointed in the right direction, on how to do this using nothing but a basic text editor and an installation of Umbraco?
There aren't any official guides/docs for that as far as I'm aware, however you could probably achieve it by creating *.cs files within the appcode directory.
If the appcode directory doesn't exist simply create it in the root directory next to the app_data folder.
The website will compile code files in there on application start up so, you might be able to simply write the code in those files and achieve the same thing.
Subscribing to events without Visual Studio
Hi,
So I am trying to follow the example for subscribing to events outlined here: https://our.umbraco.org/Documentation/Getting-Started/Code/Subscribing-To-Events/
However, after watching the related Umbraco TV guide as well (http://umbraco.tv/videos/umbraco-v7/developer/extending/events/subscribing-to-an-event/) I realized this is all being done in Visual Studio. Is there a way to get an example, or at least get pointed in the right direction, on how to do this using nothing but a basic text editor and an installation of Umbraco?
Thanks!
Hi Thomas,
There aren't any official guides/docs for that as far as I'm aware, however you could probably achieve it by creating *.cs files within the appcode directory. If the appcode directory doesn't exist simply create it in the root directory next to the app_data folder.
The website will compile code files in there on application start up so, you might be able to simply write the code in those files and achieve the same thing.
Thanks,
Nik
Hey Nik,
That solution worked like a charm. Thanks for the help!
No problem at all :-)
is working on a reply...