Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Searching results included JEM

Searching results included JEM 2 months 1 week ago #25812

The website www.franciscus-parochie.nl has a search-module at the homepage. At the result page one can specify the search possibilities (see printscreen in Dutch). After ‘Zoek alleen in’ I would like to skip the last two items ‘locaties’ and ‘agenda categorieën’. So I only want the choices ‘Artikelen’ and ‘Agenda’.
My question is: where do I do this? And what changes di I make?

Attachments:

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

Searching results included JEM 2 months 1 week ago #25813

  • hekla
  • hekla's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 145
  • Karma: 8
  • Thank you received: 72
As far as I can see you have to modify a JEM core file:

in the file jem.php in
/plugins/search/jem/jem.php
you have to delete the line 22 and 23.

here you see the original line 21-24
protected static $_areas = array('jemevents' => 'PLG_JEM_SEARCH_EVENTS',
	  'jemvenues' => 'PLG_JEM_SEARCH_VENUES',
	  'jemcategories' => 'PLG_JEM_SEARCH_JEM_CATEGORIES'
 );
Delete the lines
'jemvenues' => 'PLG_JEM_SEARCH_VENUES',
'jemcategories' => 'PLG_JEM_SEARCH_JEM_CATEGORIES'
an you get:
protected static $_areas = array('jemevents' => 'PLG_JEM_SEARCH_EVENTS'
 );
I think it will work, but remember: after every update of JEM you'll have to modify the the newly installed file again.
JEM 2.2.3 / JEM 2.2.3 with core mods (custom fields) / 2.3dev (Egnarts Version)
Joomla always up to date
php 7.2/7.3
The following user(s) said Thank You: jojo12, wesselsjan

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

Searching results included JEM 2 months 1 week ago #25835

Indeed, this works as I want.
Thanks.

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

  • Page:
  • 1
Time to create page: 0.301 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.

Follow us......