Modules disappear on search results page.

  • rperry
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 4 months ago - 12 years 4 months ago #434 by 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!!!
Last edit: 12 years 4 months ago by rperry.

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

More
12 years 4 months ago - 12 years 4 months ago #439 by andrea_4g
Replied by andrea_4g on 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
Last edit: 12 years 4 months ago by andrea_4g.

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

  • rperry
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 4 months ago #440 by rperry
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!

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

More
12 years 4 months ago - 12 years 3 months ago #441 by andrea_4g
Replied by andrea_4g on 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
Last edit: 12 years 3 months ago by andrea_4g.

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

  • rperry
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 4 months ago - 12 years 4 months ago #442 by rperry

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!!!!!!!
Last edit: 12 years 4 months ago by rperry.

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

  • rperry
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 4 months ago - 12 years 4 months ago #443 by rperry
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.
Last edit: 12 years 4 months ago by rperry.

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

Time to create page: 0.143 seconds