The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Event Details - landing screen for event

4 years 6 months ago
  • Tiberiu's Avatar
    Topic Author
  • Tiberiu
  • Offline
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 1
JomSocial Expired

When someone clicks on an event to view the event, how can we have 'Event Details' tab shall appear by default, rather than 'Recent Activities'. Most people click on an event to know more about it, and so this would make for a better user experience.

Thanks :)

The following user(s) said Thank You: Matt
4 years 6 months ago

Hi Tiberiu,

you need create override for /components/com_community/templates/default/events.viewevent.php
at line 236, change the code from

<li <?php if( $showStream ) {echo 'class="cTabCurrent"';} else {echo 'class="cTabDisabled"';} ?>><a href="javascript:void(0)"><?php echo JText::_('COM_COMMUNITY_FRONTPAGE_RECENT_ACTIVITIES');?></a></li>
<li <?php if(!$isEventGuest && !$showStream) {echo 'class="cTabCurrent"';} ?>><a href="javascript:void(0)"><?php echo JText::_('COM_COMMUNITY_EVENTS_DETAIL');?></a></li>
<li <?php if( !$showStream ) {echo 'class="cTabDisabled"';} ?>><a href="javascript:void(0)"><?php echo JText::_('COM_COMMUNITY_FRONTPAGE_RECENT_ACTIVITIES');?></a></li>
<li class="cTabCurrent"><a href="javascript:void(0)"><?php echo JText::_('COM_COMMUNITY_EVENTS_DETAIL');?></a></li>

line 247, from
<div class="cTabsContent  <?php if($showStream) {echo 'cTabsContentCurrent';} ?>">
<div class="cTabsContent">

line 262, from
<div class="cTabsContent <?php if(!$isEventGuest && !$showStream ) {echo 'cTabsContentCurrent';} ?>">
<div class="cTabsContent cTabsContentCurrent">

how to override:


The following user(s) said Thank You: Matt, Tiberiu
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