Copied to clipboard

Flag this post as spam?

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


  • AnandBhopale 54 posts 172 karma points
    Apr 28, 2021 @ 12:28
    AnandBhopale
    0

    Project Structure Question

    I have created two simple custom field controls as per guidance under umbraco documentation. I have following code

    1. 2 Class files
    2. Two field types (.cshtml) under Partial views (under Themes and Umbraco field types respectively)
    3. Two HTML files under Umbraco form Back office field types.

    Then I have created package which includes all these files.

    In second umbraco site, I have uploaded the created packages. But controls were not appearing under Umbraco forms.

    Then I have explicitely included c# files in the project and then compiled project. After that, the controls were visible under Umbraco forms.

    Is there any better way to separate out the projects so that I don't need to compile code ? Any recommedation from experts ? I can do class library project but not which Umbraco library I need to refer there.

    Also, is it possible to include partial view in separate project and then deploy as package under Umbraco ?

    I want my Umbraco base installation first up and running. Then I will install all packages on top them without any compilation of code or explicite include files in the project.

    I need expert opinion.

Please Sign in or register to post replies

Write your reply to:

Draft