Ebview module category - configure number of rows and ordering of events

  • Sascha Buchda
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 7 months ago #117175 by Sascha Buchda
Hello Tuan,

I am using the ebview module in order to display events from categories in a joomla module (see eventbookingdoc.joomservices.com/advance...tures/eb-view-module ).

Unfortunately I did not find a way to configure the number of columns, i.e. the number of events that is displayed on a row in each category. The number of events seems to be hard coded and is two. I would like to have 3 or more events per column. Futher, the order of the events cannot be configured.

Do you see a way to configure the ebview module correspondingly. Either (possibly) as undocumented parameter in the eb view module or as code adjustement i ncase this is hard-coded?

Thanks in advance,

Sascha

Please Log in or Create an account to join the conversation.

More
5 years 7 months ago #117179 by Tuan Pham Ngoc
Hi Sascha

In case you create menu item to display events from a category, then the number of events is configurable

However, in case you use eb view module, the number is hardcoded and you will need to customize the code to change it.

Look at the file components/com_eventbooking/themes/default/common/events_columns.php , you will see this line of code:
Code:
$numberColumns = JFactory::getApplication()->getParams()->get('number_columns', 2);

Change 2 to number you want, then check it again. It should work fine

Tuan

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #120035 by Bettin
Hello,

I miss the answer to the second part of the question

the order of the events cannot be configured


In my case, the events should be arranged by start date.

Best regards
bettin

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #120054 by Tuan Pham Ngoc
Hi Bettin

In Query String parameter, try to add filter_order=event_date , then check it to see whether it's working as expected?

Tuan

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago - 5 years 4 months ago #120086 by Bettin
Hello Tuan,
I inserted the string according to your instructions, but it don´t work. Here you can see how it looks:



I also tried this string:
id=7&filter_order=event_date&limit=0

Something wrong with my string?
Attachments:
Last edit: 5 years 4 months ago by Bettin.

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #120104 by Tuan Pham Ngoc
Hello Bettin

In this case, I would need to check it directly on your site to see what's wrong and get it sorted. Please submit a support ticket sending us super admin account of your site and link to the page which the module is being displayed so that we can check and correct the issue for you

Tuan
The following user(s) said Thank You: Bettin

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #120139 by Bettin
Hello Tuan,

I found the mistake myself ::huh:
Configuration -> Themes -> Events -> Order direction
The wrong value was given there DESC instead of ASC

Thank you for your kindness.
Best Regards
bettin

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #120143 by Tuan Pham Ngoc
Actually, the value entered in Query String should override the value configured in Configuration

However, I guess you have it works as how you want now, so we will leave it as how it's for now

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc