Copied to clipboard

Flag this post as spam?

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


  • Axel 68 posts 96 karma points
    Jun 13, 2014 @ 13:00
    Axel
    0

    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

  • Petr Hruzek 28 posts 100 karma points
    Jun 13, 2014 @ 18:48
    Petr Hruzek
    0

    Hi Axel.

    Place your code to App_Code folder.

    Petr

  • Nicholas Westby 2005 posts 6843 karma points c-trib
    Jun 13, 2014 @ 19:14
    Nicholas Westby
    0

    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 ).

  • Axel 68 posts 96 karma points
    Jun 15, 2014 @ 21:13
    Axel
    0

    ok thanks for your tips

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies