Looking for Customer Service & Support

IMPORTANT: This is a Community Forum. Answers are given by the community. If you are a Customer, please, Open New Issue to get access to the support service.

Customer Support is only provided through our ticketing system https://support.extly.com/. If you do not have a paid membership, please create a new topic in the community forum.

Show a div only if item links are added (XT-K2 Link Item)

More
6 months 1 week ago #10439 by Stian Næprud
Stian Næprud created the topic: Show a div only if item links are added (XT-K2 Link Item)
Is there some php-code I can use to hide/show a div on k2 item-page dependent on whether there are added item-links?

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

More
6 months 1 week ago #10440 by Support Team
Support Team replied the topic: Show a div only if item links are added (XT-K2 Link Item)
Hi,

There is no way to directly change how K2 works. However, you can conditionally add a CSS style to hide an area.

Regards,

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

More
6 months 1 week ago - 6 months 1 week ago #10441 by Stian Næprud
Stian Næprud replied the topic: Show a div only if item links are added (XT-K2 Link Item)
Nothing similar to this? :

<?php if(isset($this->item->XT-K2 Link Items)): ?>
<div>SHOW THIS IF THERE ARE ITEM LINKS</div>
<?php endif; ?>
Last Edit: 6 months 1 week ago by Stian Næprud.

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

More
6 months 1 week ago #10442 by Support Team
Support Team replied the topic: Show a div only if item links are added (XT-K2 Link Item)
Hi,

Please, check this code to extend the plugin template: www.extly.com/docs/others/xt-k2_link_ite...gory-view-templating

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

Time to create page: 0.087 seconds
Join the Club!

Access and support services to all Extly's extensions for 1-Year. The Extly Club is your source for all of our extensions.

Join Now