Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Upload Gallery

  • barryP
  • barryP's Avatar Topic Author
  • Offline
  • New Member
More
12 years 10 months ago #46867 by barryP
Upload Gallery was created by barryP
Using SIG Pro, I set the base path to /images/stories/mystuff - fine
BUT when I use K2->image gallery tab to upload ZIP file the images go to media/k2/galleries - not so good
How do I change this??

Also, since the upload automatically creates a new folder with the name of the K2 item id I will need to always use
{gallery}#k2itemid{/gallery} to show the gallery
Since I don't know the itemid until after I save the K2 item can I use a 'generic' tag for every K2 item

Example {gallery}%ID%{/gallery}

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

More
12 years 10 months ago #46868 by Katia
Replied by Katia on topic Re: Upload Gallery
Just let the directory path to images ( as it is required for K2).

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

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

  • barryP
  • barryP's Avatar Topic Author
  • Offline
  • New Member
More
12 years 9 months ago #46869 by barryP
Replied by barryP on topic Re: Upload Gallery
Katia - thanks for the reply

I'll just use media/k2/galleries from now on

Second question from original post

Create new item, specify gallery ZIP file, create content including {gallery}THIS_ITEM_GALLERY{/gallery} BUT what do I key for THIS_ITEM_GALLERY ?
Until it is created I don't know the K2 item ID yet. Does this mean save, search for the ID then Edit again ?
But then on first save I get Folder media/k2/galleries/THIS_ITEM_GALLERY not found
Messy
Is there a clean solution ?
I tried editting jw_sigpro.php line 220
// Barry Palmer Mod 9/3/12
if($galleryFolder=="THIS_ITEM_GALLERY")
$galleryFolder=$row->id;
& this works fine if you ignore the error message.
Be nice to get rid of the error - but from the 'save K2 item' the var &row->id is not set

Regards

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

More
12 years 9 months ago #46870 by Katia
Replied by Katia on topic Re: Upload Gallery
Could you rephraze the question?
Since you use K2 you just need to upload images zip folder via the K2 item gallery button.

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

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

  • barryP
  • barryP's Avatar Topic Author
  • Offline
  • New Member
More
12 years 9 months ago #46871 by barryP
Replied by barryP on topic Re: Upload Gallery
Katia

Now I understand that if I use the media/k2/galleries forlder in the JWSIGPro plugin all works well

BUT, I'm looking for a simple way for my customers to enter K2 items from the fronend.

They can easily zip the images and use the Gallry Upload feature but when the key the {gallery}{/gallery} tag in the text they do not know the K2 item ID

There MUST be a way for them to always key a 'generic' folder name which gets replaced at run time by the K2 item ID

I tried editting jw_sigpro.php line 220
//  Barry Palmer Mod 9/3/12
              if($galleryFolder=="THIS_ITEM_GALLERY")
                  $galleryFolder=$row->id;

so {gallery}THIS_ITEM_GALLERY{/gallery} can be keyed in EVERY K2 item & it will now work fine
BUT when I SAVE (only since K2 v2.5.5!!) I get errors that this folder (THIS_ITEM_GALLERY) does not exist
It seems that the SAVE process DOES execute my code in jw_sigpro.php line 220 BUT at that time the variable $row-id is not available. But the K2 item id MUST be available because the ZIP folder has been correctly placed by this SAVE

Hope I've explained myself this time

Thanks again for offering help

Regards

Barry

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

More
12 years 9 months ago #46872 by JoomlaWorks
Replied by JoomlaWorks on topic Re: Upload Gallery
When you use K2 with Simple Image Gallery Pro, rest assured K2 will handle everything for you, as long as your content editors use the "Image Gallery" tab when adding new content.

They just zip a bunch of images, upload that zip file via the "Image Gallery" tab in the K2 item edit form and just hit save. K2 will upload the zip file, extract the images to the right location and automatically render the gallery in the frontend.

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

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

  • barryP
  • barryP's Avatar Topic Author
  • Offline
  • New Member
More
12 years 9 months ago #46873 by barryP
Replied by barryP on topic Re: Upload Gallery
Thanks for the reply

I can see SIG pro & K2 are working well together - doing everything I need - almost

The only problem is keying the  "{gallery}{/gallery}"

I want to tell my content editors to create a NEW K2 item, just zip the images & upload them with "Image Gallery" tab and then just key {gallery}THIS_GALLERY{/gallery} inside the content where they want the gallery to appear
They do not know the K2 ITEM ID which needs to go between {gallery} and {/gallery}

I want to make it easy for them - every new K2 Article ALWAYS just key "{gallery}THIS_GALLERY{/gallery}" & it will work.
If they are editting from the FrontEnd how can they get the K2 article ID ?
My code in jw_sigpro.php line 220 does what is needed - but I get the error on the initial SAVE

Regards

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

More
12 years 8 months ago #46874 by B Factor Group LLC
Replied by B Factor Group LLC on topic Re: Upload Gallery
I'm having the same exact issue.  I want my content editors to be able to do this as well.
Any way to do this?

"I want to tell my content editors to create a NEW K2 item, just zip the images & upload them with "Image Gallery" tab and then just key {gallery}THIS_GALLERY{/gallery} inside the content where they want the gallery to appear
They do not know the K2 ITEM ID which needs to go between {gallery} and {/gallery}

I want to make it easy for them - every new K2 Article ALWAYS just key "{gallery}THIS_GALLERY{/gallery}" & it will work.
If they are editting from the FrontEnd how can they get the K2 article ID ?"

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


Powered by Kunena Forum