2sic / 2sxc

DNN + 2sxc = #DNNCMS - This tool helps web designers and developers prepare great looking content in DNN (DotNetNuke). It's like mixing DNN with Umbraco and Drupal :)
http://2sxc.org
MIT License
145 stars 40 forks source link

HotBuild: Enable Support for Shared `AppCode` Location Across Sites #3458

Closed tvatavuk closed 2 months ago

tvatavuk commented 2 months ago

I'm submitting a

Affects:

Current Behavior

In the current setup of a 2sxc app, each site-specific local app folder allows the creation of an AppCode directory for C# code. This code is then available for use across any view and Razor template within that app. However, for environments with multiple sites hosted on a single DNN installation, where on each site we import the same 2sxc app template, this approach can results in the duplication of AppCode files per each site, leading to unnecessary redundancy.

Expected Behavior

To optimize code reuse and reduce duplication, it would be highly beneficial to introduce support for a shared AppCode directory. Specifically:

Benefits