Copied to clipboard

Flag this post as spam?

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

  • MuhammadFayed 2 posts 42 karma points
    27 days ago

    Folder Structure in Templates


    One of the main reasons I have not used Umbraco yet, is that there is no ootb way to organize the razor templates in physical folders structure as any standard application.

    And I still don't know if there is a clean way to do it while templates can still be aware of the physical location of the view inside sub-folders of (~/Views).

    As I want to organize templates per modules to keep the views clean and easy to access when I have hundreds of them.

    Otherwise, if you may suggest a way to organize lots of templates of different modules. without keeping them together in the same folder.


    missing folder structure

  • Frans de Jong 539 posts 1785 karma points MVP 2x c-trib
    19 days ago
    Frans de Jong

    We solved this by using the Templates (Views folder) only for page templates.

    Everything else goes into the partial views folder if it needs to be visible in the Umbraco Backoffice.

  • MuhammadFayed 2 posts 42 karma points
    1 week ago

    Thanks Frans for your reply

    I found some articles about route hijacking which can really help to achieve the required physical structure on the project/code level at least

Please Sign in or register to post replies

Write your reply to: