JEvents 1.4

Event Details in Full Page

Postby budd77 » Wed Jun 04, 2008 6:44 am

Hi,

My event detail page has left & right modules displayed.

I want to have event details in full page getting rid of right/left modules.

How can I do that?

Thanks
budd77
 
Posts: 3
Joined: Wed Jun 04, 2008 6:39 am

Postby Thomas » Wed Jun 04, 2008 6:57 pm

Change your template and generate the left/right modules only if you are not in the JEvents detail view.
Thomas
Site Admin
 
Posts: 611
Joined: Mon Feb 18, 2008 11:51 am

Postby budd77 » Thu Jun 05, 2008 3:21 am

Thanks for your reply Thomas.

Do I need to do any coding for this?

Can you please suggest?

Bud
budd77
 
Posts: 3
Joined: Wed Jun 04, 2008 6:39 am

Postby Thomas » Thu Jun 05, 2008 5:16 pm

Your template file index.php is a php file and you need to do a little coding there. I give you an example for the beez template.
This template already determines whether to show the right column or not. At head of the file you'll find:
Code: Select all
$showRightColumn = $this->countModules('user1 or user2 or right or top');
$showRightColumn &= JRequest::getCmd('layout') != 'form';
$showRightColumn &= JRequest::getCmd('task') != 'edit'

Here you add a line to suppress the right column for JEvents in detail view:
Code: Select all
$showRightColumn = $this->countModules('user1 or user2 or right or top');
$showRightColumn &= JRequest::getCmd('layout') != 'form';
$showRightColumn &= JRequest::getCmd('task') != 'edit';
$showRightColumn &= ((JRequest::getCmd('task') != 'view_detail') || (JRequest::getCmd('option') != 'com_events'));


The coding depends on the template.
Thomas
Site Admin
 
Posts: 611
Joined: Mon Feb 18, 2008 11:51 am

Postby budd77 » Fri Jun 06, 2008 11:33 pm

Thanks for your reply Thomas.

I will give it a go this weekend and let you know.

Bud
budd77
 
Posts: 3
Joined: Wed Jun 04, 2008 6:39 am


Return to JEvents 1.4

  • Who is online
  • View new posts
  • View unanswered posts
  • In total there are 0 users online :: 0 registered and 0 hidden (based on users active over the past 5 minutes)
  • Most users ever online was 94 on Tue Sep 01, 2009 12:33 am
  • Users browsing this forum: No registered users