From 91660e517670aa0c93029d50e9e092c823cbc7a6 Mon Sep 17 00:00:00 2001 From: John Henley Date: Thu, 9 May 2024 16:45:58 +0000 Subject: [PATCH] ENH: support [GROUPNAME] [FORUMGROUPID] in [GROUP] section in ForumView --- Dnn.CommunityForums/CustomControls/UserControls/ForumView.cs | 2 ++ .../themes/community-bootstrap/templates/ForumView.ascx | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dnn.CommunityForums/CustomControls/UserControls/ForumView.cs b/Dnn.CommunityForums/CustomControls/UserControls/ForumView.cs index 75d65bd1..b47910c7 100644 --- a/Dnn.CommunityForums/CustomControls/UserControls/ForumView.cs +++ b/Dnn.CommunityForums/CustomControls/UserControls/ForumView.cs @@ -265,6 +265,8 @@ public string BuildForumView() //any replacements on the group string sNewGroup = "
" + sGroup + "
"; + sNewGroup = sNewGroup.Replace("[FORUMGROUPID]", fi.ForumGroupId.ToString()); + sNewGroup = sNewGroup.Replace("[GROUPNAME]", fi.GroupName); sGroupSectionTemp = TemplateUtils.ReplaceSubSection(sGroupSectionTemp, sNewGroup, "[GROUP]", "[/GROUP]"); sGroupSection += sGroupSectionTemp; tmpGroup = fi.GroupName; diff --git a/Dnn.CommunityForums/themes/community-bootstrap/templates/ForumView.ascx b/Dnn.CommunityForums/themes/community-bootstrap/templates/ForumView.ascx index e0580885..4781b9c8 100644 --- a/Dnn.CommunityForums/themes/community-bootstrap/templates/ForumView.ascx +++ b/Dnn.CommunityForums/themes/community-bootstrap/templates/ForumView.ascx @@ -5,13 +5,13 @@

[RESX:Group]: [GROUPNAME]

- +
[GROUP] -
+