- Messaggi: 12
- Ringraziamenti ricevuti 0
Modules disappear on search results page.
- rperry
- Autore della discussione
- Offline
- Nuovo Utente
Less
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!!!
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.
- andrea_4g
- Offline
- Amministratore
Less
Di più
- Messaggi: 1122
- Ringraziamenti ricevuti 163
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
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
Less
Di più
- Messaggi: 12
- Ringraziamenti ricevuti 0
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!
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.
- andrea_4g
- Offline
- Amministratore
Less
Di più
- Messaggi: 1122
- Ringraziamenti ricevuti 163
12 Anni 10 Mesi fa - 12 Anni 10 Mesi fa #441
da andrea_4g
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
Risposta da andrea_4g al topic Re: Modules disappear on search results page.
Joomla doesn't bind modules to articles. Modules are assigned to menu items only.but when you click on an article it once again disappears
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
Less
Di più
- Messaggi: 12
- Ringraziamenti ricevuti 0
12 Anni 10 Mesi fa - 12 Anni 10 Mesi fa #442
da rperry
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:
To the code on line 355 below:
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!!!!!!!
Risposta da rperry al topic Re: Modules disappear on search results page.
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.Joomla doesn't bind modules to articles. Modules are assigned to menu items only.
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/" .
Code:
$row->href = "our-resources/" . ContentHelperRoute::getArticleRoute($row->id . ":" . $row->title_alias, $row->catid .':' . $row->cat_alias);
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
Less
Di più
- Messaggi: 12
- Ringraziamenti ricevuti 0
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:
REPLACED WITH:
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.
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;?>">
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.183 secondi