Re: [Tiki-users] Custom modul with a dropdown option not working
Jonny Bradley via TikiWiki-users <[email protected]> Tue, 29 Aug 2023 16:45:15 +0100
| Newsgroups | gmane.comp.cms.tiki.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Attila (Dw?)
That seems to work fine in a tiki 24, ah, maybe yours is in a newer version... which will be using bootstrap 5, if so they changed the data attribute names to add a `bs-` "namespace" to them, so you need data-bs-toggle and data-as-target
See more here:
https://getbootstrap.com/docs/5.3/components/collapse/#example
HTH
jonny
> On 12 Aug 2023, at 09:12, Tóth Attila <[email protected]> wrote:
>
> I have a custom module, that shows some logos in a dropdown fashion -
> visible only by selected users.
> This custom code stopped working for several upgrades now, but it doesn't
> provide an important function so it was low on my priority list.
> But I'd like to address it now.
>
> Here is how the code looks like:
>
> <div class="container">
> <button type="button" class="btn btn-info" data-toggle="collapse"
> data-target="#powered">Powered</button>
> <div id="powered" class="collapse">
> <div class="img-responsive" align="center" style="border:1px;
> background:transparent; padding:0px 0px 5px;"><img
> src="https://domain.com/pics/logo1.jpg" /></div>
> <div class="img-responsive" align="center" style="border:1px;
> background:transparent; padding:0px 0px 5px;"><img
> src="https://domain.com/pics/logo2.jpg" /></div>
> <div class="img-responsive" align="center" style="border:1px;
> background:transparent; padding:5px 0px 0px;"><img
> src="https://domain.com/pics/logo3.jpg" /></div>
> </div>
> </div>
>
> I hope this example shows the concept. This was working for awhile in the
> past. There is a button in the module and upon pressing it showed the
> logos, pressing it again collapsed the module back to show only the button
> again.
>
> What can be the problem, that causes this mechanism to stop working?
>
> Thanks:
> Dw.
> --
> dr Tóth Attila, Radiológus, 06-20-825-8057
> Attila Toth MD, Radiologist, +36-20-825-8057
>
>
>
> _______________________________________________
> TikiWiki-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-users
_______________________________________________
TikiWiki-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-users