Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Simple Venueslist

[SOLVED] Simple Venueslist 3 years 8 months ago #20402

The venues appear in order now!

However, 'City' doesn't appear in the filter drop-down.

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

Last edit: by mrcraige.

[SOLVED] Simple Venueslist 3 years 8 months ago #20403

  • Bluefox
  • Bluefox's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Posts: 4286
  • Karma: 43
  • Thank you received: 464

However, 'City' doesn't appear in the filter drop-down.


hmm, did you enable the option to show city in global settings?
Another way can be to edit the view.html.php of the venueslist and change
if ($jemsettings->showcity == 1) {
	$filters[] = JHtml::_('select.option', '3', JText::_('COM_JEM_CITY'));
}

to
$filters[] = JHtml::_('select.option', '3', JText::_('COM_JEM_CITY'));

and see if that makes a difference
(won't respond to PM)
==================================================================
running: JEM 3.x (custom version) + Joomla 3.9.1.0 + PHP 5.x
Locally: PHP 7.3.5 + Joomla 4.0.0-alpha10 + pre-alpha JEM4.x (custom)
The following user(s) said Thank You: mrcraige

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

[SOLVED] Simple Venueslist 3 years 8 months ago #20418

You're right! City wasn't enabled in the global settings for some reason!
Sorry. All working fine now!

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

[SOLVED] Simple Venueslist 3 years 7 months ago #20606

  • Bluefox
  • Bluefox's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
  • Posts: 4286
  • Karma: 43
  • Thank you received: 464
about the venues-venue:

am currently taking a look at the venues-model and maybe the slowness can happen due the fact that there is a function to collect AssignedEvents. that function is firing up query's so maybe that was causing the problem but don't know.

Hmm, also the function for assingingEvents is triggered twice for a venue-item and would say that can be reduced. Maybe better would be to remove the count of events completely.
(won't respond to PM)
==================================================================
running: JEM 3.x (custom version) + Joomla 3.9.1.0 + PHP 5.x
Locally: PHP 7.3.5 + Joomla 4.0.0-alpha10 + pre-alpha JEM4.x (custom)

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

Last edit: by Bluefox.

[SOLVED] Simple Venueslist 3 years 7 months ago #20625

The new venuesview is working well!

However, there are two problems:

It includes unpublished venues.

If a user searches for something in the filter, it remains in cache so next time they return to the venuesview it is still on the filter results. The same problem exists with pagination - next time you end up on the page you were on last time.

EDIT: I just realised the filter problem exists with the eventslist too!

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

Last edit: by mrcraige.

[SOLVED] Simple Venueslist 3 years 7 months ago #20736

Any ideas regarding how to have the venuesview only display published venues?

Or how to solve the problem of pagination caching?

Thanks.

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

Time to create page: 0.237 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.