Hi, when i open a Umbraco 7 Webseite Project with Visual Studio i want write some functions by myself . Where is the best location under the Umbraco Project to put my Code. For example i will use
I put most of my code in a different project, and then reference that project from my website. The other project may need to have references to the Umbraco DLL's. You can either create a new folder with the DLL's and reference them from that project, or reference the DLL's in your bin folder on your website.
Custom Code in Umbraco 7
Hi, when i open a Umbraco 7 Webseite Project with Visual Studio i want write some functions by myself . Where is the best location under the Umbraco Project to put my Code.
For example i will use
Imports umbraco.Web.UI.Controls.UmbracoControl
Best regards
Axel
Hi Axel.
Place your code to App_Code folder.
Petr
I put most of my code in a different project, and then reference that project from my website. The other project may need to have references to the Umbraco DLL's. You can either create a new folder with the DLL's and reference them from that project, or reference the DLL's in your bin folder on your website.
Most views/controls/pages should go in the website (under UserControls or Views or Masterpages). I typically only put MVC helpers in my App_Code folder (and sometimes plugins that need to basically compile as soon as they are dropped into the website, such as https://github.com/rhythmagency/rhythm.umbraco.data-processor/blob/master/trunk/Website/App_Code/RhythmDataProcessor.cs ).
ok thanks for your tips
is working on a reply...