Modules disappear on search results page.

  • rperry
  • Autore della discussione
  • Offline
  • Nuovo Utente
  • Nuovo Utente
Di più
12 Anni 10 Mesi fa - 12 Anni 10 Mesi fa #434 da rperry
Modules disappear on search results page. è stato creato da rperry
When use the filter module and click search the modules that were in the left and right sidebars disappear. How can I enable the module to be persistent on the search results page?

www.test-enernoc.com/our-resources

After further investigation I discovered that this only happens if SEF is enabled in Joomla global configuration. I need the modules to show up with SEF enabled. PLEASE HELP!!!
Ultima Modifica 12 Anni 10 Mesi fa da rperry.

Si prega Accesso o Crea un account a partecipare alla conversazione.

Di più
12 Anni 10 Mesi fa - 12 Anni 10 Mesi fa #439 da andrea_4g
Risposta da andrea_4g al topic Re: Modules disappear on search results page.
The solutions suggested on this thread should fix this issue:
www.solidsystem.it/forum/5-custom-proper...-search-modules.html
Ultima Modifica 12 Anni 10 Mesi fa da andrea_4g.

Si prega Accesso o Crea un account a partecipare alla conversazione.

  • rperry
  • Autore della discussione
  • Offline
  • Nuovo Utente
  • Nuovo Utente
Di più
12 Anni 10 Mesi fa #440 da rperry
Risposta da rperry al topic Re: Modules disappear on search results page.
This is not a workable solution. Yes it does help to get the CP module to persist, but when you click on an article it once again disappears. Also, I have a menu module published in the left sidebar that does not persist at all.

I need a real solution. I am a Joomla Professional working for a very large company in Boston. I make my living building Joomla websites. This is the first extension that I have installed where module are disappearing on me.

PLEASE HELP!

Si prega Accesso o Crea un account a partecipare alla conversazione.

Di più
12 Anni 10 Mesi fa - 12 Anni 10 Mesi fa #441 da andrea_4g
Risposta da andrea_4g al topic Re: Modules disappear on search results page.

but when you click on an article it once again disappears

Joomla doesn't bind modules to articles. Modules are assigned to menu items only.
Chances are that the articles that cause the modules to disappear have no menu items pointing to them, hence no "hooks" to assign to the modules to.
To overcome this limitation, and have a finer control on module assignment, extensions such as Advanced Module Manager have been developed.
www.nonumber.nl/extensions/advancedmodulemanager
Ultima Modifica 12 Anni 10 Mesi fa da andrea_4g.

Si prega Accesso o Crea un account a partecipare alla conversazione.

  • rperry
  • Autore della discussione
  • Offline
  • Nuovo Utente
  • Nuovo Utente
Di più
12 Anni 10 Mesi fa - 12 Anni 10 Mesi fa #442 da rperry
Risposta da rperry al topic Re: Modules disappear on search results page.

Joomla doesn't bind modules to articles. Modules are assigned to menu items only.

I understand how the assignment of Joomla modules works. The problem is the correct URL is not being passed, so the modules that are assigned are not being displayed.

I was able to get the modules to persist when clicking an article only by modifying line 355 in components/com_customproperties/views/show/tmpl/default.php

I added the following:
Code:
"our-resources/" .
To the code on line 355 below:
Code:
$row->href = "our-resources/" . ContentHelperRoute::getArticleRoute($row->id . ":" . $row->title_alias, $row->catid .':' . $row->cat_alias);
This did not however take care of the problem of the left sidebar module not showing up. This component should be written in such a way that the results pages have the same modules as the search page.

Still need help with getting my sidebar module to persist on the search result pages!!!!!!!
Ultima Modifica 12 Anni 10 Mesi fa da rperry.

Si prega Accesso o Crea un account a partecipare alla conversazione.

  • rperry
  • Autore della discussione
  • Offline
  • Nuovo Utente
  • Nuovo Utente
Di più
12 Anni 10 Mesi fa - 12 Anni 10 Mesi fa #443 da rperry
Risposta da rperry al topic Re: Modules disappear on search results page.
I was able to get my sidebar module to persist on the search results page by replacing the reference to the "index.php" with the following code on line 134 of /modules/mod_cpsearch/mod_cpsearch.php

PREVIOUS CODE:
Code:
<form class="searchform" action="<?php echo JURI::Base(); ?>index.php" method="get" onsubmit="return cpOnSubmit(this, req<?php echo $module_id;?>, '<?php echo $text;?>','<?php echo $require_field_message;?>');" id="cpsearchform<?php echo $module_id;?>">
REPLACED WITH:
Code:
<form class="searchform" action="<?php echo JURI::Base(); ?>our-resources" method="get" onsubmit="return cpOnSubmit(this, req<?php echo $module_id;?>, '<?php echo $text;?>','<?php echo $require_field_message;?>');" id="cpsearchform<?php echo $module_id;?>">

Note that the reference to the "our-resources" is the menu item that I have modules published to that I needed to persist on the search results page. In my case this will work fine, but it limits my ability to use Custom Properties elsewhere in the site. The real solution would be to make this info dynamic according the URL of the page where the CP search module resides.

Hopefully this will help to point someone in the right direction.
Ultima Modifica 12 Anni 10 Mesi fa da rperry.

Si prega Accesso o Crea un account a partecipare alla conversazione.

Tempo creazione pagina: 0.184 secondi