- Posts: 1
COMMUNITY FORUM
Using same SIG pro gallery in different K2 items
- gf2015
- Topic Author
- Offline
- New Member
Less
More
6 years 9 months ago #166506
by gf2015
Using same SIG pro gallery in different K2 items was created by gf2015
First of all, I'm using SIGpro 3.0.8. Before I buy a new version I want to know if it's already possible to use the same gallery in a different K2 item.
Because I want to display it under the extra fields, the use of the {plugin} inside the K2 article is not an option. I want to do it by using the gallery tab. But there I can only select the upload (what's not necessary) or edit an existing (and that's empty). I want there the possibility to select an existing from another K2 article.
Is that already possible in V3.1? Or is there an other solution?
Because I want to display it under the extra fields, the use of the {plugin} inside the K2 article is not an option. I want to do it by using the gallery tab. But there I can only select the upload (what's not necessary) or edit an existing (and that's empty). I want there the possibility to select an existing from another K2 article.
Is that already possible in V3.1? Or is there an other solution?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
6 years 9 months ago #166682
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Using same SIG pro gallery in different K2 items
Hello and thank you for your interest in our product,
Unfortunately at the current moment each K2 item has a separate gallery.
You can use an extrafield in order to add additional galleries and have common galleries between items.
Unfortunately at the current moment each K2 item has a separate gallery.
You can use an extrafield in order to add additional galleries and have common galleries between items.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Rauf Özgen
- Offline
- New Member
Less
More
- Posts: 2
4 years 10 months ago - 4 years 10 months ago #174534
by Rauf Özgen
Replied by Rauf Özgen on topic Using same SIG pro gallery in different K2 items
i make i little hack on content plugin
first i found this part:
then changed to:
when i want to share a k2 gallery on an other k2 item i am using content plugin like this
{gallery}k2gal/178{/gallery} or
{gallery}k2gal/178:::0:{/gallery}
in this usage 178 is the gallery id of k2 item. "k2gal/" for changed code. if you change this part you must change strpos part of the code change.
first i found this part:
// Normalize the source image folder
if (strpos($galleryFolder, 'media/jw_sigpro/users')!==false) {
$srcimgfolder = substr($galleryFolder, 1);
} else {
$srcimgfolder = $galleries_rootfolder.'/'.$galleryFolder;
}
then changed to:
// Normalize the source image folder
if (strpos($galleryFolder, 'media/jw_sigpro/users')!==false) {
$srcimgfolder = substr($galleryFolder, 1);
} else {
if (strpos($galleryFolder, "k2gal/") !== false) {
$gfold = str_replace("k2gal/", "", $galleryFolder);
$srcimgfolder = 'media/k2/galleries'.'/'.$gfold;
} else {
$srcimgfolder = $galleries_rootfolder.'/'.$galleryFolder;
}
}
when i want to share a k2 gallery on an other k2 item i am using content plugin like this
{gallery}k2gal/178{/gallery} or
{gallery}k2gal/178:::0:{/gallery}
in this usage 178 is the gallery id of k2 item. "k2gal/" for changed code. if you change this part you must change strpos part of the code change.
Last edit: 4 years 10 months ago by JoomlaWorks.
Please Log in or Create an account to join the conversation.