Panneau N0C 04 EN 250 250
Get 15% discount on our partner PlanetHoster with the code PHA-ceikay

load module 2 times with loadmodule

More
12 years 4 months ago #20623 by mdma
hello!!
-1 real accordion ck module in hidden position

-with nonumber plugin modules-anywhere and 2 custom-html modules i call the accordion 2 times.

- menu1 works good
- menu2 doesnt work/ doesnt have easing/javascript-hoover effect on it.

have you got an idea whats happening?(
when i am adding another real accordionCK (with own id) it is working...

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

More
12 years 4 months ago #20636 by ced1870
Hi
sorry I don't really understand what is the issue. is the normal module loading fine ?
are you loading the same module 2 times in the same page, if this is the case then yes you will have a problem. You can load multiple modules in the page, but not multiple times the same
CEd

Joomlack Webmaster and Developer

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

More
12 years 4 months ago #20643 by mdma
bonjour!

-> but not multiple times the same.

thats the case...

whats the technical background for this? please give me some hint...
could there be some workaround theoretically?

i tried with some advanced custom html module to reload the accordionscript ...no success

why is the javascript not pulled the second time?

greetings

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

More
12 years 4 months ago #20645 by ced1870
the problem is that each module has a unique ID to make it work as you have 2 times the same ID in the page this can not work correctly

Joomlack Webmaster and Developer

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

More
12 years 4 months ago #20693 by mdma
Hello! i understand the problem with unique ids
what i tried now, was to alter menuID variable in mod_accordionck.php
api.jquery.com/attribute-starts-with-selector/
Code:
$document->addScript(JURI::base(true) . '/modules/mod_accordeonck/assets/jquery.easing.1.3.js'); $js = " jQuery(document).ready(function(jQuery){ jQuery('[id^=\"accordionck\"]').accordeonmenuck({" . "fadetransition : " . $fadetransition . ","



Do you know how this little hack would be possible?

Greetings

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

More
12 years 4 months ago #20695 by ced1870
this is not a JS problem, but a HTML problem. You must not load 2 times the same module ... sorry but that is the only solution because it will also gives you some HTML validation error and may cause other issues
but you can use 2 different modules that render the same menu ;)

Joomlack Webmaster and Developer

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

Time to create page: 0.198 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 3485 guests and 3 members online