Keyword

k2 category view - in lightbox?

  • Paul Preibisch
  • Paul Preibisch's Avatar Topic Author
  • Offline
  • New Member
More
13 years 6 months ago #95211 by Paul Preibisch
k2 category view - in lightbox? was created by Paul Preibisch
Hi there,

 

I am using k2 for our online pizza menu: 

goldiespizza.com/sandbox/index.php/en/menu/itemlist/category/12-meat.html

this shows all the items in the category.

 

When a user clicks on one of the images, I want the item, or the image to show up in a lightbox... is this possible?

 

Also, I want a print and email button for the category listing, is this possible too???

 

please help!

thanks!
Attachments:

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

  • Yiota
  • Yiota's Avatar
  • Visitor
13 years 6 months ago #95212 by Yiota
Replied by Yiota on topic k2 category view - in lightbox?
You could try to get the code from the item image that opens in a lightbox and put it accordingly to the category image link.

I can only tell you for the Print button for the category item. You can write something like the following, right where you need to call it in the category item

 

<a class="modal itemPrintLink" href="<?php echo $this->item->link.'?tmpl=component&print=1'; ?>" rel="{handler:'iframe',size:{x:900,y:500}}"> <span><?php echo JText::_('Print'); ?></span> </a>

 

If you don't want it to open in a modal box you can switch to

 

<a class="itemPrintLink" href="<?php echo $this->item->link.'?tmpl=component&print=1'; ?>" onclick="window.print();return false;"> <span><?php echo JText::_('Print'); ?></span> </a>

 

Give it a try

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


Powered by Kunena Forum