Kunena Menu
load module 2 times with loadmodule
12 years 4 months ago #20623
by mdma
load module 2 times with loadmodule was created 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...
-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.
12 years 4 months ago #20636
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic load module 2 times with loadmodule
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
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.
12 years 4 months ago #20643
by mdma
Replied by mdma on topic load module 2 times with loadmodule
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
-> 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.
12 years 4 months ago #20645
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic load module 2 times with loadmodule
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.
12 years 4 months ago #20693
by mdma
Replied by mdma on topic load module 2 times with loadmodule
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/
Do you know how this little hack would be possible?
Greetings
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.
12 years 4 months ago #20695
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic load module 2 times with loadmodule
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
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





