Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: support [GROUPNAME] [FORUMGROUPID] tokens in [GROUP] section in ForumView #795

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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