Skip Navigation

[Resolved] Creating a gallery of galleries

This support ticket is created 4 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 8 replies, has 2 voices.

Last updated by josephC-5 4 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#1319643

Hi there,

I'm looking for advice about how to structure content for an art gallery's website. One template, the Artist Detail Template, will list all of an artists' artwork in a grid of thumbnail images. This is fairly straightforward in WordPress, since it supports a gallery out-of-the-box. However, when clicking a thumbnail, it needs to lead to another page that may have multiple views of that single image (a second gallery). What's the best way (and easiest for the person who will update the site) to organize the content in WordPress using Toolset? (I realize this may or may not be a Toolset question, depending on the response.)

I've attached two screens to try to make this clearer. In "Artist Detail - Desktop.png," there's a grid of thumbnails. In "Artwork Detail Overlay - Desktop.png," it's as if we clicked the thumbnail in the upper-left corner of the first screen, and we see one image at the top of the page, an inquiry form, and a second image at the bottom of the page. (There can be more than two images on the page, or just one.)

Oops! It looks like the images are too large to upload. I've posted them as PDFs on Dropbox here:

Artist Detail - Desktop.pdf: hidden link
Artwork Detail Overlay - Desktop.pdf: hidden link

Thank you for your guidance!

Saul

#1319957

Dear Saul,

Thanks for the details, in your case, I suggest you try these:
1) Create two post types
- Artist
- Artwork (enable Featured Image, add a repeating image field)
https://toolset.com/documentation/user-guides/repeating-fields/

2) Setup one-to-many relationship between "Artist" and "Artwork"
https://toolset.com/documentation/post-relationships/how-to-set-up-post-relationships-using-toolset/

3) In a single "Artist" post, you can create a view to display related "Artwork" posts:
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-many-related-items

4) In a single "Artwork" post, you can display it's repeating image field, see the document I mentioned above in step 1)
https://toolset.com/documentation/user-guides/repeating-fields/#Displaying%20Repeating%20Fields
Section "Displaying Repeating Fields".

For your reference.

#1320403
Screen Shot 2019-08-20 at 12.33.58.png

Luo,

These instructions are excellent! They make perfect sense. Thanks!

A follow-up question: these "galleries" on the Artist page can have images *or* videos. Should I make a repeating group that contains an image custom field and a video custom field? How should I accommodate that scenario?

Please see the attached image for a rough design of the Artist page with a list of thumbnails (which will be in a more orderly grid in the final design).

Saul

#1320669

Yes, you are right, according to your screenshot, it needs custom video field + custom image field, so you can make a repeating group that contains an image custom field and a video custom field.

For the question:
How should I accommodate that scenario?
I suggest you try these:
In a single "Artwork" post, you can create post view, query items of repeating field group:
https://toolset.com/documentation/getting-started-with-toolset/creating-and-displaying-repeatable-field-groups/#displaying-repeatable-field-groups
In view's loop, use [wpv-conditional] shortcode to check if the custom video field isn't empty, then display video field
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/checking-types-fields-and-custom-fields/
If the custom image field isn't empty, then display the custom image field

#1322263

Luo,

Thanks for the additional pointers. The conditional logic is very clear.

Regarding the video field, will Toolset automatically create a thumbnail image of the uploaded video? Or do I need to add another custom field to hold the image for the video thumbnail?

Thank you!

Saul

#1322599

Hi Saul,

Yes, you are right, Toolset can't automatically create a thumbnail image of the uploaded video, you can add another custom field to hold the image for the video thumbnail.

#1322645

Luo,

OK, that makes sense. Thanks!

This may be a question for a new thread, but can I extract metadata from an image file in order to output caption information? And can I do that using both the Toolset interface and PHP code?

Saul

#1322655

Dear Saul,

We prefer one question one thread, please create new ticket for other new questions, in the new ticket describe details for these:
1) What kind of file metadata information do you want to output
2) Where and how do you want to output

thanks

#1323063

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.