Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

Removing the Group and Event Categories Display

7 years 11 months ago
Licenses:
JomSocial Active

Hello:

I was reading this post on how to remove the categories display for videos. Where in the code can I remove the same categories display for groups and events?

7 years 11 months ago
Licenses:

Hi Adrienne,

you can do ti by using override
documentation.jomsocial.com/wiki/Customizing_Template

1. make override for /components/com_community/templates/default/groups.index.php
and remove this code

<div class="cGroup-Categories app-box">
<?php if ( $index ) : ?>
	<h3 class="app-box-header"><?php echo JText::_('COM_COMMUNITY_CATEGORIES');?></h3>
	<div class="app-box-content">
		<ul class="app-box-list for-menu cResetList">
			<li>
				<i class="com-icon-folder"></i>
			<?php if( $category->parent == COMMUNITY_NO_PARENT && $category->id == COMMUNITY_NO_PARENT ){ ?>
				<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups');?>"><?php echo JText::_( 'COM_COMMUNITY_GROUPS_ALL_GROUPS' ); ?></a>
			<?php }else{ ?>
				<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=display&categoryid=' . $category->parent ); ?>"><?php echo JText::_('COM_COMMUNITY_BACK_TO_PARENT'); ?></a>
			<?php }  ?>
			</li>
			<?php if( $categories ): ?>
				<?php foreach( $categories as $row ): ?>
					<li>
						<i class="com-icon-folder"></i>
						<a href="<?php echo CRoute::_('index.php?option=com_community&view=groups&task=display&categoryid=' . $row->id ); ?>"><?php echo JText::_( $this->escape($row->name) ); ?></a>
						<?php if( $row->total > 0 ){ ?><span class="label">&nbsp;<?php echo $row->total; ?></span><?php } ?>
					</li>
				<?php endforeach; ?>
			<?php else: ?>
				<?php if( $category->parent == COMMUNITY_NO_PARENT && $category->id == COMMUNITY_NO_PARENT ){ ?>
					<li>
						<i class="com-icon-folder"></i>
						<?php echo JText::_('COM_COMMUNITY_GROUPS_CATEGORY_NOITEM'); ?>
					</li>
				<?php } ?>
			<?php endif; ?>
		</ul>
	</div>
<?php endif; ?>
</div>

1. make override for /components/com_community/templates/default/groups.index.php
remove this code
<!-- Categories -->
<?php
if ( $index && $handler->showCategories() ) :
	echo $this->view('events')->modEventCategories($category, $categories);
endif;
?>

Regards,
Albert

The following user(s) said Thank You: Adrienne
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW