Keyword

How to Add Custom Switches to K2 Image Gallery (using SIG Pro plugin)?

  • jethrodesign
  • jethrodesign's Avatar Topic Author
  • Offline
  • New Member
More
13 years 11 months ago #89710 by jethrodesign
Hi, we're using SIG Pro in conjunction with K2 to provide pop-up galleries for individual event items. The K2 item interface allows us to upload a zip file with all images on the 'Image Gallery' tab for each event/item. This works fine, and the pop-up galleries use the item title (usually name of event) as the caption for all images.
But on occasion, we would prefer to use a 'labels.txt' file to include custom captions for each individual image instead of the default 'global' caption. 

According to the SIG Pro documentation, there are custom switches that can be used to override the defaults on an individual basis: {gallery}folder_path:thumbs_width:thumbs_height:display_mode:caption_mode{/gallery}

So we 'should' be able to add a custom switch for certain galleries to use the labels.txt file for captions instead of general.

Unfortunately, the K2 Image Gallery tab only displays the {gallery}item#{/gallery} text that gets generated, but does NOT allow you to edit this to add the switches.

- Is it possible to be able to modify this behavior so you could add the switches to allow for custom captions when necessary? 

- If so, can you point me to which file(s) would have to change?

- Is there a simpler way to pull this off? Remember, we like the current behavior and only want to override it on occasion.

THANKS!

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

More
13 years 11 months ago #89711 by william white
Check item.php lines 481 489 where the gallery is displayed if it exists
If you can parse the name of the gallery or the item number you would use to call it a regular article and call it here with the reference to the text file it may work.

Put all of this in an override for use with the categories you want to use labels with

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


Powered by Kunena Forum