Hi,
here the steps to override that group page template:
1. copy single.php from [site root]/components/com_community/templates/jomsocial/layouts/groups/ to [site root]/templates/[frontend template folder]/html/com_community/layouts/groups/ (create the folders if not exist yet)
2. edit that file, at line 311
<li class="full">
<a href="javascript:" data-ui-object="joms-dropdown-button">
<?php echo JTEXT::_('COM_COMMUNITY_MORE'); ?>
<svg viewBox="0 0 14 20" class="joms-icon">
<use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-arrow-down"></use>
</svg>
</a>
<ul class="joms-dropdown more-button">
<?php if ($config->get('creatediscussion')) { ?>
<li><a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewdiscussions&groupid=' . $group->id); ?>">
<?php echo ($totalDiscussion == 1)
? JText::_('COM_COMMUNITY_GROUPS_DISCUSSION') . ' <span class="joms-text--light">' . $totalDiscussion . '</span>'
: JText::_('COM_COMMUNITY_GROUPS_DISCUSSIONS') . ' <span class="joms-text--light">' . $totalDiscussion . '</span>'; ?>
</a></li>
<?php } ?>
<?php if ($config->get('createannouncement') && ($isMember || $isSuperAdmin)) { ?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewbulletins&groupid=' . $group->id); ?>">
<?php echo ($totalBulletin == 1)
? JText::_('COM_COMMUNITY_GROUPS_ANNOUNCEMENT_COUNT') . ' <span class="joms-text--light">' . $totalBulletin . '</span>'
: JText::_('COM_COMMUNITY_GROUPS_ANNOUNCEMENT_COUNT_MANY') . ' <span class="joms-text--light">' . $totalBulletin . '</span>'; ?>
</a>
</li>
<?php } ?>
<?php if ((($isAdmin) || ($isMine) || ($isMember && !$isBanned)) && $isFile) { ?>
<li>
<a href="javascript:" onclick="joms.api.fileList('group',<?php echo $group->id ?>)">
<?php echo ($isFile == 1)
? JText::_('COM_COMMUNITY_GROUPS_FILE_COUNT') . ' <span class="joms-text--light">' . $isFile . '</span>'
: JText::_('COM_COMMUNITY_GROUPS_FILE_COUNT_MANY') . ' <span class="joms-text--light">' . $isFile . '</span>'; ?>
</a>
</li>
<?php } ?>
<?php if ($isAdmin || $isSuperAdmin) { ?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=banlist&list=-1&groupid='.$group->id) ?>">
<?php echo JText::_('COM_COMMUNITY_GROUPS_BANNED_MEMBERS') ; ?>
<span class="joms-text--light"><?php echo $totalBannedMembers; ?></span>
</a>
</li>
<?php } ?>
</ul>
</li><?php if ($config->get('creatediscussion')) { ?>
<li><a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewdiscussions&groupid=' . $group->id); ?>">
<?php echo ($totalDiscussion == 1)
? JText::_('COM_COMMUNITY_GROUPS_DISCUSSION') . ' <span class="joms-text--light">' . $totalDiscussion . '</span>'
: JText::_('COM_COMMUNITY_GROUPS_DISCUSSIONS') . ' <span class="joms-text--light">' . $totalDiscussion . '</span>'; ?>
</a></li>
<?php } ?>
<?php if ($config->get('createannouncement') && ($isMember || $isSuperAdmin)) { ?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewbulletins&groupid=' . $group->id); ?>">
<?php echo ($totalBulletin == 1)
? JText::_('COM_COMMUNITY_GROUPS_ANNOUNCEMENT_COUNT') . ' <span class="joms-text--light">' . $totalBulletin . '</span>'
: JText::_('COM_COMMUNITY_GROUPS_ANNOUNCEMENT_COUNT_MANY') . ' <span class="joms-text--light">' . $totalBulletin . '</span>'; ?>
</a>
</li>
<?php } ?>
<?php if ((($isAdmin) || ($isMine) || ($isMember && !$isBanned)) && $isFile) { ?>
<li>
<a href="javascript:" onclick="joms.api.fileList('group',<?php echo $group->id ?>)">
<?php echo ($isFile == 1)
? JText::_('COM_COMMUNITY_GROUPS_FILE_COUNT') . ' <span class="joms-text--light">' . $isFile . '</span>'
: JText::_('COM_COMMUNITY_GROUPS_FILE_COUNT_MANY') . ' <span class="joms-text--light">' . $isFile . '</span>'; ?>
</a>
</li>
<?php } ?>
<?php if ($isAdmin || $isSuperAdmin) { ?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=banlist&list=-1&groupid='.$group->id) ?>">
<?php echo JText::_('COM_COMMUNITY_GROUPS_BANNED_MEMBERS') ; ?>
<span class="joms-text--light"><?php echo $totalBannedMembers; ?></span>
</a>
</li>
<?php } ?>
Hi,
here the steps to override it:
1. copy miniheader.php from [site root]/components/com_community/templates/jomsocial/layouts/groups/ to [site root]/templates/[frontend template folder]/html/com_community/layouts/groups/ (create the folders if not exist yet)
2. edit that file, at line 182
<li class="half">
<a href="javascript:" data-ui-object="joms-dropdown-button">
<?php echo JTEXT::_('COM_COMMUNITY_MORE'); ?>
<svg viewBox="0 0 14 20" class="joms-icon">
<use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-arrow-down"></use>
</svg>
</a>
<ul class="joms-dropdown more-button">
<li class="hidden-desktop">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewmembers&groupid=' . $group->id); ?>">
<?php echo ($membersCount == 1)
? JText::_('COM_COMMUNITY_GROUPS_MEMBER') . ' <span class="joms-text--light">' . $membersCount . '</span>'
: JText::_('COM_COMMUNITY_GROUPS_MEMBERS') . ' <span class="joms-text--light">' . $membersCount . '</span>'; ?>
</a>
</li>
<?php if ($showEvents) { ?>
<li class="hidden-desktop">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=events&task=dispaly&groupid=' . $group->id); ?>">
<?php echo ($totalEvents == 1)
? JText::_('COM_COMMUNITY_EVENTS_COUNT') . ' <span class="joms-text--light">' . $totalEvents . '</span>'
: JText::_('COM_COMMUNITY_EVENTS_COUNT_MANY') . ' <span class="joms-text--light">' . $totalEvents . '</span>'; ?>
</a>
</li>
<?php } ?>
<?php if ($showPhotos) { ?>
<li class="hidden-desktop">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=photos&task=display&groupid=' . $group->id); ?>">
<?php echo ($totalPhotos == 1) ?
JText::_('COM_COMMUNITY_PHOTOS_COUNT_SINGULAR') . ' <span class="joms-text--light">' . $totalPhotos . '</span>' :
JText::_('COM_COMMUNITY_PHOTOS_COUNT') . ' <span class="joms-text--light">' . $totalPhotos . '</span>'; ?>
</a>
</li>
<?php } ?>
<?php if ($showVideos) { ?>
<li class="hidden-desktop">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=videos&groupid=' . $group->id); ?>">
<?php echo ($totalVideos == 1)
? JText::_('COM_COMMUNITY_VIDEOS_COUNT') . ' <span class="joms-text--light">' . $totalVideos . '</span>'
: JText::_('COM_COMMUNITY_VIDEOS_COUNT_MANY') . ' <span class="joms-text--light">' . $totalVideos . '</span>'; ?>
</a>
</li>
<?php } ?>
<?php if ($config->get('creatediscussion')) { ?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewdiscussions&groupid=' . $group->id); ?>">
<?php echo ($totalDiscussion == 1)
? JText::_('COM_COMMUNITY_GROUPS_DISCUSSION') . ' <span class="joms-text--light">' . $totalDiscussion . '</span>'
: JText::_('COM_COMMUNITY_GROUPS_DISCUSSIONS') . ' <span class="joms-text--light">' . $totalDiscussion . '</span>'; ?>
</a></li>
<?php } ?>
<?php if ($config->get('createannouncement') && ($isMember || $isSuperAdmin)) { ?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewbulletins&groupid=' . $group->id); ?>">
<?php echo ($totalBulletin == 1)
? JText::_('COM_COMMUNITY_GROUPS_ANNOUNCEMENT_COUNT') . ' <span class="joms-text--light">' . $totalBulletin . '</span>'
: JText::_('COM_COMMUNITY_GROUPS_ANNOUNCEMENT_COUNT_MANY') . ' <span class="joms-text--light">' . $totalBulletin . '</span>'; ?>
</a>
</li>
<?php } ?>
<?php if ((($isAdmin) || ($isMine) || ($isMember && !$isBanned)) && $isFile) { ?>
<li>
<a href="javascript:" onclick="joms.api.fileList('group',<?php echo $group->id ?>)">
<?php echo ($isFile == 1)
? JText::_('COM_COMMUNITY_GROUPS_FILE_COUNT') . ' <span class="joms-text--light">' . $isFile . '</span>'
: JText::_('COM_COMMUNITY_GROUPS_FILE_COUNT_MANY') . ' <span class="joms-text--light">' . $isFile . '</span>'; ?>
</a>
</li>
<?php } ?>
<?php if ($isAdmin || $isSuperAdmin) { ?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=banlist&list=-1&groupid='.$group->id) ?>">
<?php echo JText::_('COM_COMMUNITY_GROUPS_BANNED_MEMBERS') ; ?>
<span class="joms-text--light"><?php echo $totalBannedMembers; ?></span>
</a>
</li>
<?php } ?>
</ul>
</li><li class="hidden-desktop">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewmembers&groupid=' . $group->id); ?>">
<?php echo ($membersCount == 1)
? JText::_('COM_COMMUNITY_GROUPS_MEMBER') . ' <span class="joms-text--light">' . $membersCount . '</span>'
: JText::_('COM_COMMUNITY_GROUPS_MEMBERS') . ' <span class="joms-text--light">' . $membersCount . '</span>'; ?>
</a>
</li>
<?php if ($showEvents) { ?>
<li class="hidden-desktop">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=events&task=dispaly&groupid=' . $group->id); ?>">
<?php echo ($totalEvents == 1)
? JText::_('COM_COMMUNITY_EVENTS_COUNT') . ' <span class="joms-text--light">' . $totalEvents . '</span>'
: JText::_('COM_COMMUNITY_EVENTS_COUNT_MANY') . ' <span class="joms-text--light">' . $totalEvents . '</span>'; ?>
</a>
</li>
<?php } ?>
<?php if ($showPhotos) { ?>
<li class="hidden-desktop">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=photos&task=display&groupid=' . $group->id); ?>">
<?php echo ($totalPhotos == 1) ?
JText::_('COM_COMMUNITY_PHOTOS_COUNT_SINGULAR') . ' <span class="joms-text--light">' . $totalPhotos . '</span>' :
JText::_('COM_COMMUNITY_PHOTOS_COUNT') . ' <span class="joms-text--light">' . $totalPhotos . '</span>'; ?>
</a>
</li>
<?php } ?>
<?php if ($showVideos) { ?>
<li class="hidden-desktop">
<a href="<?php echo CRoute::_('index.php?option=com_community&view=videos&groupid=' . $group->id); ?>">
<?php echo ($totalVideos == 1)
? JText::_('COM_COMMUNITY_VIDEOS_COUNT') . ' <span class="joms-text--light">' . $totalVideos . '</span>'
: JText::_('COM_COMMUNITY_VIDEOS_COUNT_MANY') . ' <span class="joms-text--light">' . $totalVideos . '</span>'; ?>
</a>
</li>
<?php } ?>
<?php if ($config->get('creatediscussion')) { ?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewdiscussions&groupid=' . $group->id); ?>">
<?php echo ($totalDiscussion == 1)
? JText::_('COM_COMMUNITY_GROUPS_DISCUSSION') . ' <span class="joms-text--light">' . $totalDiscussion . '</span>'
: JText::_('COM_COMMUNITY_GROUPS_DISCUSSIONS') . ' <span class="joms-text--light">' . $totalDiscussion . '</span>'; ?>
</a></li>
<?php } ?>
<?php if ($config->get('createannouncement') && ($isMember || $isSuperAdmin)) { ?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=viewbulletins&groupid=' . $group->id); ?>">
<?php echo ($totalBulletin == 1)
? JText::_('COM_COMMUNITY_GROUPS_ANNOUNCEMENT_COUNT') . ' <span class="joms-text--light">' . $totalBulletin . '</span>'
: JText::_('COM_COMMUNITY_GROUPS_ANNOUNCEMENT_COUNT_MANY') . ' <span class="joms-text--light">' . $totalBulletin . '</span>'; ?>
</a>
</li>
<?php } ?>
<?php if ((($isAdmin) || ($isMine) || ($isMember && !$isBanned)) && $isFile) { ?>
<li>
<a href="javascript:" onclick="joms.api.fileList('group',<?php echo $group->id ?>)">
<?php echo ($isFile == 1)
? JText::_('COM_COMMUNITY_GROUPS_FILE_COUNT') . ' <span class="joms-text--light">' . $isFile . '</span>'
: JText::_('COM_COMMUNITY_GROUPS_FILE_COUNT_MANY') . ' <span class="joms-text--light">' . $isFile . '</span>'; ?>
</a>
</li>
<?php } ?>
<?php if ($isAdmin || $isSuperAdmin) { ?>
<li>
<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=banlist&list=-1&groupid='.$group->id) ?>">
<?php echo JText::_('COM_COMMUNITY_GROUPS_BANNED_MEMBERS') ; ?>
<span class="joms-text--light"><?php echo $totalBannedMembers; ?></span>
</a>
</li>
<?php } ?>
Hi,
It's working just fine, thanks...
Why not in a future version to create a setting in admincp for us to select the number of menu itens to show on the main tab, or make it responsive, in a way that if there is enough space it will fill the entire bar, if not, it will send the itens into the submenu.
Thanks again
Hi,
you can put user voice at here:
uservoice.jomsocial.com/forums/101561-jo...ial-feature-requests
Regards