Notice

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.

events landing page to details

10 years 3 months ago
  • Alan's Avatar
    Topic Author
  • Alan
  • Offline
  • Fresh Boarder
  • Posts: 75
  • Thank you received: 1
Licenses:
JomSocial Expired

Hi
Is it possible to make details the landing view on events as opposed to Recent activities?
thanks
Alan

10 years 3 months ago
Licenses:

Hi Alan,

you can follow this steps:

1. copy events.viewevent.php from /components/com_community/templates/default/ to /templates/it_community2/html/com_community, and edit it
2. at line 233 you can see this code

<!-- Global Application Tab bar framework -->
<div class="cTabsBar clearfull">
	<ul class="cPageTabs cResetList cFloatedList clearfix">
		<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(!$isEventGuest) {echo 'class="cTabDisabled"';} ?>><a href="javascript:void(0)">Event Program</a></li-->
	</ul>
</div>
<!-- END: Global Application Tab bar framework -->
changing it to
<!-- Global Application Tab bar framework -->
<div class="cTabsBar clearfull">
	<ul class="cPageTabs cResetList cFloatedList clearfix">
		<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(!$isEventGuest) {echo 'class="cTabDisabled"';} ?>><a href="javascript:void(0)">Event Program</a></li-->
		<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>
	</ul>
</div>
<!-- END: Global Application Tab bar framework -->

and at line 261 you can see this code
<!-- Tab 2: Event Details -->
<div class="cTabsContent <?php if(!$isEventGuest && !$showStream ) {echo 'cTabsContentCurrent';} ?>">
	<div class="cEvent-Description">
		<?php
		if( !CStringHelper::isHTML($event->description) ) {
			echo CStringHelper::nl2br($event->description);
		}
		else {
			echo $event->description;
		}
		?>
		<!-- Focus Details expand/collapse -->
	<div class="js-focus-details">
		<div class="row-fluid">
			<div class="span12">
				<dl>
					<!-- Event Category -->
					<dt><?php echo JText::_('COM_COMMUNITY_EVENTS_CATEGORY'); ?></dt>
					<dd><a href="<?php echo CRoute::_('index.php?option=com_community&view=events&categoryid=' . $event->catid);?>"><?php echo JText::_( $event->getCategoryName() ); ?></a></dd>
					<!-- Event Date & Time -->
					<dt><?php echo JText::_('COM_COMMUNITY_EVENTS_TIME')?></dt>
					<dd>
					<?php echo ($allday) ? JText::sprintf('COM_COMMUNITY_EVENTS_ALLDAY_DATE',$event->startdateHTML) : JText::sprintf('COM_COMMUNITY_EVENTS_DURATION',$event->startdateHTML,$event->enddateHTML); ?>
						<?php if( $config->get('eventshowtimezone') ) { ?>
							<span class="small"><?php echo $timezone; ?></span>
						<?php } ?>
					</dd>
					<!-- Event Location -->
					<dt><?php echo JText::_('COM_COMMUNITY_EVENTS_LOCATION');?></dt>
					<dd id="community-event-data-location">
						<a href="http://maps.google.com/?q=<?php echo urlencode($event->location); ?>" target="_blank"><?php echo $event->location; ?></a>
					</dd>
					<!--Event Occurence -->
					<?php if ($event->isRecurring()) { ?>
					<dt><?php echo JText::_('COM_COMMUNITY_EVENTS_OCCURENCE');?></dt>
					<dd><?php echo JText::_('COM_COMMUNITY_EVENTS_REPEAT_' . strtoupper($event->repeat)); ?></dd>
					<?php }?>
					<!--Event Admins-->
					<dt><?php echo JText::_('COM_COMMUNITY_EVENTS_ADMINS')?></dt>
					<dd><?php echo $adminsList;?></dd>
				</dl>


			</div>
		</div>
	</div>
	</div>
</div>
<!-- Tab 2: END -->

move that code to line 245, above this code
<!-- Tab 1: Activity Stream Container -->

Regards

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