Keyword

Input for image folder

  • Ali Oner
  • Ali Oner's Avatar Topic Author
  • Offline
  • New Member
More
3 years 1 month ago #178057 by Ali Oner
Input for image folder was created by Ali Oner
Hello,

I have pictures in subfolders named as product IDs in images/products/img_db/productID

I would like to ask the website visitor input the "productID".
Is it possible to use SIG by using this type of dynamic image folder?

Thank you.

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

More
3 years 1 month ago #178071 by JoomlaWorks
Replied by JoomlaWorks on topic Input for image folder
You need to describe the process you have in mind in more detail. I don't understand what you want to achieve...

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

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

  • Ali Oner
  • Ali Oner's Avatar Topic Author
  • Offline
  • New Member
More
3 years 1 month ago #178079 by Ali Oner
Replied by Ali Oner on topic Input for image folder
Different product images are uploaded into folders named with "productID"

ProductID=123 Product images: Apple1.jpg Apple2.jpg Apple3.jpg --> uploaded in folder: images/products/img_db/123
ProductID=79 Product images: orange142342.jpg orange2432.jpg --> uploaded in folder: images/products/img_db/79
ProductID=374837 Product images: table342.jpg table976.jpg --> uploaded in folder: images/products/img_db/374837

Website user knows the productID , therefore i will put a text field to ask user to enter the productID, then i want SIG to show the images in that folder: User enters "79" in text field, after pressing "ok", "images/products/img_db/79" is defined as the SIG gallery folder path.

I hope it is clear now.

Thank you for your response.

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

More
3 years 1 month ago #178081 by JoomlaWorks
Replied by JoomlaWorks on topic Input for image folder
It depends on "how" you'll implement this feature on your side. If you know how to do that, you'll probably know how to parse content type plugins...

In any case, it's beyond the scope of this support forum.

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

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

  • Ali Oner
  • Ali Oner's Avatar Topic Author
  • Offline
  • New Member
More
3 years 1 month ago - 3 years 1 month ago #178082 by Ali Oner
Replied by Ali Oner on topic Input for image folder
Previous steps were already done, I just want to know if it is possible to change the defined gallery folder depending on user input as: "....ask user to enter the productID, then i want SIG to show the images in that folder: User enters "79" in text field, after pressing "ok", "images/products/img_db/79" is defined as the SIG gallery folder path."

OR

is it possible in SIG PRO?
Last edit: 3 years 1 month ago by Ali Oner. Reason: Added last question.

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

More
3 years 1 month ago #178084 by JoomlaWorks
Replied by JoomlaWorks on topic Input for image folder
All you have to do is present the content in {gallery}...{/gallery} tags dynamically and make sure you trigger content-type plugins so that these tags are actually converted on a working image gallery.

E.g. docs.joomla.org/J3.x:Triggering_content_plugins_in_your_extension

Keep in mind that if you do this process with AJAX, any CSS/JS required in the document's head by the plugin will not be appended as such.

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

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

  • Ali Oner
  • Ali Oner's Avatar Topic Author
  • Offline
  • New Member
More
3 years 1 month ago #178088 by Ali Oner
Replied by Ali Oner on topic Input for image folder
"All you have to do is present the content in {gallery}...{/gallery} tags dynamically and make sure you trigger content-type plugins so that these tags are actually converted on a working image gallery."

That's what i need, unfortunately i do not know how to create that dynamic statement. :-(

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

More
3 years 1 month ago #178111 by JoomlaWorks
Replied by JoomlaWorks on topic Input for image folder
I've provided you with the coding examples from the Joomla Docs site. If you can't adapt that to whatever customization you've done, then I can't help you out, sorry. It's really beyond the scope of this support forum.

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

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

  • Ali Oner
  • Ali Oner's Avatar Topic Author
  • Offline
  • New Member
More
3 years 1 month ago #178132 by Ali Oner
Replied by Ali Oner on topic Input for image folder
Thank you for your response.

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


Powered by Kunena Forum