Skip to content

Commit

Permalink
Merge pull request #795 from johnhenley/timo/forumgroupid-token-forum…
Browse files Browse the repository at this point in the history
…view

ENH: support [GROUPNAME] [FORUMGROUPID] tokens in [GROUP] section in ForumView
  • Loading branch information
WillStrohl committed May 12, 2024
2 parents fd567f2 + 91660e5 commit 79816c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Dnn.CommunityForums/CustomControls/UserControls/ForumView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ public string BuildForumView()

//any replacements on the group
string sNewGroup = "<div id=\"group" + GroupId + "\" class=\"afgroup\">" + sGroup + "</div>";
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<div class="dcf-forums">
<div class="dcf-group-title-wrap d-flex align-items-center py-2">
<h3 class="dcf-group-title h5 flex-grow-1">[RESX:Group]: [GROUPNAME]</h3>
<a class="bs-collapse" data-toggle="collapse" href="#forum-group-1">
<a class="bs-collapse" data-toggle="collapse" href="#forum-group-[FORUMGROUPID]" role="button" data-bs-toggle="collapse">
<i class="fa fa-chevron-circle-down fa-lg"></i>
</a>
</div>

[GROUP]
<div id="forum-group-1" class="dcf-forums-group collapse show">
<div id="forum-group-[FORUMGROUPID]" class="dcf-forums-group collapse show">
<table class="dcf-table dcf-table-100 table table-responsive-md">
<thead>
<tr class="dcf-table-head-row">
Expand Down

0 comments on commit 79816c4

Please sign in to comment.