- Posts: 12
- Thank you received: 0
Modules disappear on search results page.
- rperry
- Topic Author
- Offline
- New Member
Less
More
12 years 10 months ago - 12 years 10 months ago #434
by rperry
Modules disappear on search results page. was created 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!!!
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 10 months ago by rperry.
Please Log in or Create an account to join the conversation.
- andrea_4g
- Offline
- Administrator
Less
More
- Posts: 1122
- Thank you received: 163
12 years 10 months ago - 12 years 10 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
www.solidsystem.it/forum/5-custom-proper...-search-modules.html
Last edit: 12 years 10 months ago by andrea_4g.
Please Log in or Create an account to join the conversation.
- rperry
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
12 years 10 months ago #440
by rperry
Replied by rperry on 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!
Please Log in or Create an account to join the conversation.
- andrea_4g
- Offline
- Administrator
Less
More
- Posts: 1122
- Thank you received: 163
12 years 10 months ago - 12 years 10 months ago #441
by 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
Replied by andrea_4g on 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
Last edit: 12 years 10 months ago by andrea_4g.
Please Log in or Create an account to join the conversation.
- rperry
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
12 years 10 months ago - 12 years 10 months ago #442
by 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!!!!!!!
Replied by rperry on 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!!!!!!!
Last edit: 12 years 10 months ago by rperry.
Please Log in or Create an account to join the conversation.
- rperry
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
12 years 10 months ago - 12 years 10 months ago #443
by rperry
Replied by rperry on 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.
Last edit: 12 years 10 months ago by rperry.
Please Log in or Create an account to join the conversation.
Time to create page: 0.189 seconds