Keyword

How to toggl Extrafields

  • Franz Heine
  • Franz Heine's Avatar Topic Author
  • Offline
  • Premium Member
More
1 month 3 weeks ago #180554 by Franz Heine
How to toggl Extrafields was created by Franz Heine
Hi guys,

how can i toggl the extrafields? Ive created a onclick function with the item->id. like this:
 <div class="detail-toggle" onclick="toggle_visibility('<?php echo $item->id; ?>');">Mehr Infos</div>
You can see it on the following site:
lastschrift-bezahlen.de/

Thx
 

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

More
1 month 2 weeks ago #180563 by JoomlaWorks
Replied by JoomlaWorks on topic How to toggl Extrafields
It's out of the scope if this forum. Google how to create a toggler with vanilla JS and HTML. Then adjust the HTML output of your K2 template override accordingly.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Franz Heine
  • Franz Heine's Avatar Topic Author
  • Offline
  • Premium Member
More
1 month 2 weeks ago - 1 month 2 weeks ago #180572 by Franz Heine
Replied by Franz Heine on topic How to toggl Extrafields
Thx Fotis!

if ill put the vanilla js toggle into the category items. Should i put the code into category_item.php?
Last edit: 1 month 2 weeks ago by Franz Heine.

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

More
1 month 2 weeks ago #180575 by JoomlaWorks
Replied by JoomlaWorks on topic How to toggl Extrafields
Explore the code in the 3rd example here: digitalsurgeons.github.io/toggles-switches/

Adjust your HTML accordingly in one of the K2 template overrides. And CSS is best to be kept along with your site's CSS code.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum