Skip to content

Commit e54e594

Browse files
authored
Merge pull request #1784 from DNNCommunity/dev
2 parents 8f26ec1 + d8b055d commit e54e594

94 files changed

Lines changed: 2562 additions & 2723 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/copilot-instructions.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
<!-- modeled on https://github.com/FritzAndFriends/SharpSite/pull/333 -->
1+
<!-- modeled on https://github.com/FritzAndFriends/SharpSite/pull/333 -->
32

43
You are a senior .NET developer, experienced in C#, JavaScript, HTML, ASP.NET Framework 4.8, CSS, and SQL.
54
You understand the priciples of DNN (DotNetNuke) and how to develop DNN modules.
@@ -84,4 +83,33 @@ You use Visual Studio Enterprise for running, debugging, and testing DNN (DotNet
8483
- Use HTTPS for all web communication and ensure proper CORS policies are implemented.
8584

8685
## API Documentation
87-
- Ensure XML documentation for models and API methods for enhancing sufficient documentation.
86+
- Ensure XML documentation for models and API methods for enhancing sufficient documentation.
87+
88+
## Cross-repo references for `DotNetNuke`
89+
90+
When code references the `DotNetNuke` namespace and the relevant types or source files are not present in this workspace, consult the following external GitHub repository (in order) to resolve and reference code:
91+
92+
1. Primary external repository:
93+
- URL: `https://github.com/dnnsoftware/Dnn.Platform`
94+
95+
2. Resolution rules:
96+
- Always prefer files that exist in the current workspace first.
97+
- If a required `DotNetNuke` type or file is not found locally, use the `get_file` tool to fetch the matching file(s) from the primary external repository above.
98+
- If multiple candidate files exist, prefer the file whose namespace and public surface match the requested symbols and which targets the closest .NET Framework version (target .NET Framework 4.7.2/4.8 compatibility).
99+
- When fetching, prefer the latest stable commit on the default branch unless a specific tag/commit is provided.
100+
101+
3. How to fetch and reference:
102+
- Use `get_file` to load required source files (provide path relative to the repository root when possible).
103+
- Treat fetched files as read-only references used to clarify API shape and behavior. Do not assume you can copy large blocks of third-party source verbatim without checking license and project policy.
104+
- If code must be adapted or copied into this project, add an appropriate file header/license comment consistent with this repository's guidelines and ensure compliance with the external repository license.
105+
106+
4. Ordering and additional repositories:
107+
- If additional repos are needed, list them below this section in priority order with URLs and preferred subpaths.
108+
- Example placeholder for additional repo(s):
109+
<!--- `https://github.com/example/dnn-helpers` — preferred path: `src`-->
110+
111+
5. Fallback behavior and errors:
112+
- If the external repo cannot be accessed, fail gracefully: note the missing symbol and request the user to provide the file or a repository location.
113+
- When in doubt about API compatibility or licensing, ask the user for clarification before copying code.
114+
115+
Add or update repository URLs in this section as needed to point Copilot at other authoritative sources for the `DotNetNuke` namespace.

Dnn.CommunityForums/09.06.00.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
DesktopModules\ActiveForums\CustomControls\Resources\cal_nextMonth.gif
2+
DesktopModules\ActiveForums\CustomControls\Resources\cal_prevMonth.gif
3+
DesktopModules\ActiveForums\CustomControls\Resources\calendar.gif
4+
DesktopModules\ActiveForums\CustomControls\Resources\datepicker.js
5+
DesktopModules\ActiveForums\scripts\calendar.css

Dnn.CommunityForums/ActiveForumViewer.ascx.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,17 @@ protected override void OnLoad(EventArgs e)
3737
{
3838
string viewType = Convert.ToString(this.Settings[ForumViewerSettingsKeys.AFViewType]);
3939
int tmpModuleId = Convert.ToInt32(this.Settings[ForumViewerSettingsKeys.AFForumModuleId]);
40-
int tmpForumId = Convert.ToInt32(this.Settings[ForumViewerSettingsKeys.AFForumGroupId]);
40+
int tmpForumOrGroupId = Convert.ToInt32(this.Settings[ForumViewerSettingsKeys.AFForumGroupId]);
4141
if (viewType.ToLowerInvariant() == "topics")
4242
{
4343
viewType = Views.Topics;
44-
this.ctlForumLoader.ForumId = tmpForumId;
44+
this.ctlForumLoader.ForumId = tmpForumOrGroupId;
4545
}
4646
else
4747
{
4848
viewType = Views.ForumView;
49-
this.ctlForumLoader.ForumGroupId = tmpForumId;
49+
this.ctlForumLoader.ForumId = -1;
50+
this.ctlForumLoader.ForumGroupId = tmpForumOrGroupId;
5051
}
5152

5253
this.ctlForumLoader.DefaultView = viewType;

Dnn.CommunityForums/App_LocalResources/ControlPanel.ascx.fr-FR.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,4 +1540,7 @@ Votre méthode de suppression est actuellement définie sur {0}. Vos sujets ser
15401540
<data name="[RESX:Tips:SecGrid:Tag].Text" xml:space="preserve">
15411541
<value>Peut ajouter/gérer des tags sur des sujets. Tous les tags entrés dans les publications (sujets et/ou réponses) sont automatiquement ajoutés au sujet ainsi que la liste des tags disponibles sur les forums.</value>
15421542
</data>
1543+
<data name="[RESX:NotActive].Text" xml:space="preserve">
1544+
<value>Non actif</value>
1545+
</data>
15431546
</root>

Dnn.CommunityForums/App_LocalResources/ControlPanel.ascx.it-IT.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,4 +1537,7 @@ Il metodo di rimozione è attualmente impostato su {0}. I tuoi argomenti verran
15371537
<data name="[RESX:Tips:SecGrid:Tag].Text" xml:space="preserve">
15381538
<value>Può aggiungere/gestire tag su argomenti. Qualsiasi tag inserito nei post (argomenti e/o risposte) viene aggiunto automaticamente all'argomento così come la lista dei tag disponibili nei forum.</value>
15391539
</data>
1540+
<data name="[RESX:NotActive].Text" xml:space="preserve">
1541+
<value>Non attivo</value>
1542+
</data>
15401543
</root>

Dnn.CommunityForums/App_LocalResources/ControlPanel.ascx.nl-NL.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,4 +1687,7 @@ De verwijder-methode is momenteel ingesteld op "{0}". Uw onderwerpen worden {1}
16871687
<data name="[RESX:Tips:SecGrid:Tag].Text" xml:space="preserve">
16881688
<value>Kan tags toevoegen of beheren op onderwerpen. Alle tags die in berichten (onderwerpen en/of reacties) worden ingevoerd, worden automatisch toegevoegd aan het onderwerp, evenals aan de lijst van tags die beschikbaar zijn op de forums.</value>
16891689
</data>
1690+
<data name="[RESX:NotActive].Text" xml:space="preserve">
1691+
<value>Niet actief</value>
1692+
</data>
16901693
</root>

Dnn.CommunityForums/App_LocalResources/ControlPanel.ascx.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,4 +1642,7 @@ Your removal method is currently set to {0}. Your topics will be {1} based upon
16421642
<data name="[RESX:UserMentions].Text" xml:space="preserve">
16431643
<value>User Mentions</value>
16441644
</data>
1645+
<data name="[RESX:NotActive].Text" xml:space="preserve">
1646+
<value>Not Active</value>
1647+
</data>
16451648
</root>

Dnn.CommunityForums/App_LocalResources/Controlpanel.ascx.de-DE.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,4 +1642,7 @@ Ihre Entfernungsmethode ist derzeit auf {0} eingestellt. Ihre Themen werden anh
16421642
<data name="[RESX:Tips:SecGrid:Tag].Text" xml:space="preserve">
16431643
<value>Kann Tags zu Themen hinzufügen/verwalten. Alle in Beiträgen (Themen und/oder Antworten) eingetragenen Tags werden automatisch dem Thema sowie der Liste der im Forum verfügbaren Tags hinzugefügt.</value>
16441644
</data>
1645+
<data name="[RESX:NotActive].Text" xml:space="preserve">
1646+
<value>Nicht aktiv</value>
1647+
</data>
16451648
</root>

Dnn.CommunityForums/App_LocalResources/Controlpanel.ascx.es-ES.resx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,4 +1537,7 @@ El método de eliminación está configurado actualmente en {0}. Los temas se {
15371537
<data name="[RESX:Tips:SecGrid:Tag].Text" xml:space="preserve">
15381538
<value>Puede añadir/gestionar etiquetas en los temas. Cualquier etiqueta introducida en las publicaciones (temas y/o respuestas) se añade automáticamente al tema, así como a la lista de etiquetas disponibles en los foros.</value>
15391539
</data>
1540+
<data name="[RESX:NotActive].Text" xml:space="preserve">
1541+
<value>No activo</value>
1542+
</data>
15401543
</root>

Dnn.CommunityForums/App_LocalResources/ForumSettings.ascx.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
<value>New Topic</value>
254254
</data>
255255
<data name="URLPrefixBase.Help" xml:space="preserve">
256-
<value>This is the text that will be used as the intial part of all forum URLs. In most cases you will just want to enter "forum"</value>
256+
<value>This is the text that will be used as the initial part of all forum URLs. In most cases you will just want to enter "forums"</value>
257257
</data>
258258
<data name="URLPrefixBase.Text" xml:space="preserve">
259259
<value>Base Path</value>

0 commit comments

Comments
 (0)