Elxis CMS Forum
Support => Elxis 4.x/5.x DEV => Topic started by: speck on September 12, 2014, 12:02:57
-
when in the same page there's mod_search with google map plugin, icon is not whowed in the selector
<select title="Select" onchange="msearchPick(556)" id="elx_modsearch_eng556" class="elx_modsearch_eng" name="engine">
<option data-act="http://localhost/en/search/content.html" data-image="http://localhost/components/com_search/engines/content/content.png" selected="selected" value="content">Content</option>
<option data-act="http://localhost/en/search/images.html" data-image="http://localhost/components/com_search/engines/images/images.png" value="images">Images</option>
<option data-act="http://localhost/en/search/youtube.html" data-image="http://localhost/components/com_search/engines/youtube/youtube.png" value="youtube">YouTube</option>
</select>
when google map plug-in is not in the page, the icon in selector of mod_search is showed (works fine)
<select title="Select" onchange="msearchPick(563)" id="elx_modsearch_eng563" class="elx_modsearch_eng" name="engine" style="background-image: url("http://localhost/components/com_search/engines/content/content.png");">
<option data-act="http://localhost/en/search/content.html" data-image="http://localhost/components/com_search/engines/content/content.png" selected="selected" value="content">Content</option>
<option data-act="http://localhost/en/search/images.html" data-image="http://localhost/components/com_search/engines/images/images.png" value="images">Images</option>
<option data-act="http://localhost/en/search/youtube.html" data-image="http://localhost/components/com_search/engines/youtube/youtube.png" value="youtube">YouTube</option>
</select>
i've tried to use the mod_search of elxis 4.1 and there's no problem. it works fine ...
please check it.
i found another bug about show/hide intro text and subtitle of articles but i don't know how to explain.
i solved the problem in this way:
<param type="list" name="art_hideintro" default="-1" label="HIDE_INTROTEXT" dir="rtl" description="Hide intro text in article page.">
<option value="-1">GLOBAL_SETTING</option>
<option value="1">HIDE</option>
<option value="0">SHOW</option>
</param>
<param type="list" name="art_hidesubtitle" default="-1" label="HIDE_SUBTITLE" dir="rtl" description="Hide subtitle in article page.">
<option value="-1">GLOBAL_SETTING</option>
<option value="1">HIDE</option>
<option value="0">SHOW</option>
</param>
try to check the options because with the demo site all works fine, but if u add a new articles or modify an articles, it seems the options how now in elxis 4.2 seems not works fine.
-
I will check them and reply you. Thanks for the report.
-
I did the check and I found no problem. I don't see the bugs you mention.
Module search works fine, the images are shown in an article page with google maps plugin integrated. When I change selected search engine their images also change. No problem found. Make sure you have updated file search.js in mod_search folder.
Hide subtitle and Hide intro text parameters works fine on a new generated article. I don't see any problem.
-
Hide subtitle and Hide intro text parameters works fine on a new generated article. I don't see any problem.
scenario:
category selecetd Hide intro text or subtitle.
article select by default show text or subitile, text and subtitle are showed.
on new article or modified article, for me it not works because in that category i selected hide intro text or subtitle by default the intro text and subtitle don't need display. (good choice is how are other control in articles > global setting - show - hide
works in example site of the elxis 4.2 installation, because the parameter intro text and subotle don't exist in the articles records
about search, mistery ???
i did some experiment
with google map plug-in in the page, no problem.
it seems the problem is when google map is in a user module. try to check it
here an example
http://elxis4.elxisitalia.com/companytmp/company/about2.html
if u get a look to tag select oh the mod serach, is completely different in other pages where google map not exist.
-
Module search is fine. The problem is that the window.onload event of the map plugin overwrites other onload events by other extensions (eg module search). You need a multiple onload events solution which provides function elxLoadEvent or jquery.
Try the following.
Open components/com_content/plugins/map/map.plugin.php
Go to line 201 and change this:
$js .= 'window.onload = function() { initGoogleMaps(); }';
To this:
$js .= 'elxLoadEvent(function() { initGoogleMaps(); });';
Note: function elxLoadEvent is available since Elxis 4.1 rev1441. Don't use it on older Elxis versions. To provide compatibility with Elxis 4.0 the map plugin uses the standard window.onload method.
Tell me if the problem was solved.
-
$js .= 'elxLoadEvent(function() { initGoogleMaps(); });';
with this solution, mod-search with google map plug-in in any module position works fineworks fine ;)