Elxis CMS Forum

Extensions => Bots and plugins => Topic started by: kyomar on May 19, 2013, 10:52:28

Title: google map inside tab plugin
Post by: kyomar on May 19, 2013, 10:52:28
Hi, the google map plugin doesn't seem to work inside the tab plugin. Article no problem. Any solution?

Thank you!
Title: Re: google map inside tab plugin
Post by: webgift on May 19, 2013, 13:23:22
You are trying to add a content plugin inside to another one content plugin. This can NOT be done. You can to that by working with source code.
Title: Re: google map inside tab plugin
Post by: kyomar on May 20, 2013, 01:47:31
Thank you webgift for you quick reply. I really feel right at home here at elxis.

That's a shame that this is not possible. But I am wondering why i can load the gallery plugin in the tab plugin without any problem? Shouldn't this also be possible with other plugins like google map?
Title: Re: google map inside tab plugin
Post by: webgift on May 20, 2013, 10:26:25
You are welcome, kyomar.
I suggest you what is the proper way according to our guidelines. Beyond the rules the only one that can help you is the extension's developer.
Title: Re: google map inside tab plugin
Post by: speck on May 20, 2013, 11:32:38
if u mean tab plug-in for elxis.4.0, google map works fine(i don't know under elxis4.1 because i've not tested)

if u have any type of problem get a look at the code html generated by tab plug-in beetwen his two command lines of start and end plug-in

<div>
    <h5> INSERT_HERE_TAB_TITLE</h5>
    <div class="contenttab">

        <p>insert_here_your_text</p>
    </div>
</div>


the complete code inerting google map plugin must be so
<p>
   <code>{tab action=start}{/tab}</code></p>
<div>
   <h5>
      INSERT_HERE_TAB_TITLE</h5>
   <div class="contenttab">
      <p>
         <code>{map width=&quot;400&quot; height=&quot;250&quot;}45.464165,9.190662{/map}</code></p>
   </div>
</div>
<p>
   <code>{tab action=end}{/tab}</code></p>

*************************

<div class="contenttab"></div> i very important. if it missing, tab plug-in works badly in that section

for any problem there's an help online of any my extension in my site.

ATTENTION: google maps works badly in slider plug-in. but unlucky is the script of original google map gives problem in hidden sliders. i've tried to fix it, but nothing.
Title: Re: google map inside tab plugin
Post by: kyomar on May 20, 2013, 14:28:17
Thank you very much speck for you help. I have the exact same code as you described but it's not working in Elxis4.1. Didn't test in 4.0. I am not online with the website yet so cannot show anything (still localhost).

<div>
   <h5>
      Map</h5>
   <div class="contenttab">
      <p>
         <code>{map info=&quot;B&amp;B Koyuki&quot; width=&quot;300&quot; height=&quot;250&quot;}36.689844,137.847229{/map}</code></p>
   </div>
</div>
Title: Re: google map inside tab plugin
Post by: speck on May 20, 2013, 19:46:14
tested.
in the new version works only in the first tab...
under the other tabs, it not works...
the <div> of goole map is broken
this is in the first tab
<div id="googlemap1" style="width: 360px; height: 360px; position: relative; background-color: rgb(229, 227, 223); overflow: hidden;"> ....bla bla bla bla ..... </div> (works)

this in the second tab and other tabs
<div id="googlemap1" style="width:360px; height:360px;"></div>
Title: Re: google map inside tab plugin
Post by: kyomar on May 21, 2013, 01:59:03
thank you very much for testing it. This explains why the gallery plugin works as it is in the first tab. Unfortunately I need the map in the following tabs. Anyway I have to find a different place to show the map or use a source code version. The only thing I miss so fare in elxis is the loadposition function I had in joomla. But I can live with that as elxis is a dream to work with otherwise. A solution could be a tabs module where one could select articles to show in the tabs - just an idea.
Title: Re: google map inside tab plugin
Post by: speck on May 21, 2013, 21:08:42
Anyway I have to find a different place to show the map or use a source code version.
pay attention: also using the code, google map has a lot of problem in hidden div managed by jQuery script, it not works or works badly. very easily is a bug.
if u search on google (google map problem in hidden div or google map problem jquery hidden div) u find many articles about this problem. maybe if for a personal works u can solve the problem.
in tabs or slider managed by mootols, i can confirm u there are no problem ... i've a lot of site with elxis 2009 with tabs and slider plug-in where google map works fine in any tabs and slider position