Skip Navigation

[Resolved] Gallery options

This support ticket is created 4 years, 10 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.

Our next available supporter will start replying to tickets in about 1.19 hours from now. Thank you for your understanding.

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/Karachi (GMT+05:00)

This topic contains 8 replies, has 3 voices.

Last updated by Waqar 4 years, 9 months ago.

Assisted by: Waqar.

Author
Posts
#1484533

We have a toolset page set up here:
View / search results - hidden link
Individual page - hidden link

Is there a way to add a gallery that displays the thumbnails and allows you to click on the main image to scroll through the images?

#1486139

Hi,

Thank you for contacting us and I'd be happy to assist.

To show the enlarged image in a modal/popup on click and also scroll through other images, you can use a third-party plugin like "WP jQuery Lightbox":
https://wordpress.org/plugins/wp-jquery-lightbox/

The following article reviews some other popular options:
hidden link

I hope this helps.

regards,
Waqar

#1490031

Okay great! How do we set it up to work with toolset?

#1490221

Can you please share temporary admin login details along with an example page with some images which need to be shown in a scrollable gallery?

I'll be in a better position to guide you with the next steps, accordingly.

Note: Your next reply will be private please make a complete backup copy, before sharing the access details.

#1493677

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

Waqar is off today, let me see if I can help.

I tried to visit your site but the credentials you provided do not work.

In any case, these things are reasonably straightforward to set up and generic instructions should suffice.

However, I first just need to clarify what you want.

From your initial question Waqar has directed you towards setting up a lightbox gallery.

But from the rightmove link in your last reply I think you actually want a slider, similar to hidden link

With our new Blocks there is a Repeating Field/Gallery Block which lets you output multiple custom image fields as a slider, but it doesn't include the thumbnail navigation as in that example. If you don't need it, then the simplest way to add a slider is to use that block.

Otherwise you could set up the flexslider as per the linked example according to the directions I have provided previously here: https://toolset.com/forums/topic/how-to-display-the-pics-i-uploaded-as-a-slider/#post-518295

#1493723

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2020-02-05 at 10.47.18.png

Just a quick update to say I checked with the developers who said the thumbnail option should be possible with the Repeating Field/Gallery block, and I double-checked and can confirm that, although I have to say it is not intuitive.

In the screenshot you should be able to see me adding such as block, with the required settings:

- Number of columns is the number of thumbnails below the main image
- Show thumbnail needs to be set
- Crop images is likely to be required (so that the thumbnails are all the same size)

So, you should be able to create your slider just using the block editor to design your template and using the Repeating Field/Gallery block, without the need to add any extra plugins.

#1495789

{ticket status updated}

#1498347

Opps sorry I have updated the password to the correct one.

Okay we are using WP bakery, can we do it with that? and would we do it on this template page -
hidden link

Would that work on the VIEW results as well as the individual pages?

hidden link
hidden link

#1503019

Thank you for sharing the admin access.

Based on what you've shared, I would suggest the following steps to create a gallery of images:

1. Your website is already loading Bootstrap 3 styles and scripts and for a lightbox gallery with a slider, you can use its carousel feature.
hidden link

2. In your website's view "Available space image gallery", you can change the "Pagination and Sliders Settings" option to "No pagination" and in the "Loop Editor" section, include the following code for the image slides:


[wpv-layout-start]
	[wpv-items-found]
		<!-- wpv-loop-start -->
		<wpv-loop>
		[wpv-item index=1]
			<div class="item active">
				<a href="[types field='photo' output='raw'][/types]" rel="lightbox[]">
					<img src="[types field='photo' output='raw'][/types]" alt="slider-image">
				</a>
			</div>
		[wpv-item index=other]
			<div class="item">
				<a href="[types field='photo' output='raw'][/types]" rel="lightbox[]">
					<img src="[types field='photo' output='raw'][/types]" alt="slider-image">
				</a>
			</div>
		</wpv-loop>
		<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]

Notes: This view will be used to dynamically generate the carousal's slides.
( screenshot: hidden link )

Please check the "Disable the wrapping DIV around the View" checkbox too, just above the "Output Editor" section.

3. Next, you'll need a another post view to dynamically show the carousal's navigation controls.
( screenshot: hidden link )

You can duplicate your view "Available space image gallery" and name the new view to something like "Available space image gallery - controls".

In the "Loop Editor" section of this new view, you can update the content to only generate the navigation controls like this:


[wpv-layout-start]
	[wpv-items-found]
		<!-- wpv-loop-start -->
		<wpv-loop>
		[wpv-item index=1]
			<li data-target="#carousel-example-generic" data-slide-to="[wpv-loop-index accumulate='true' pad='false' offset='-1']" class="active"></li>
		[wpv-item index=other]
			<li data-target="#carousel-example-generic" data-slide-to="[wpv-loop-index accumulate='true' pad='false' offset='-1']"></li>
		</wpv-loop>
		<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
	[/wpv-no-items-found]
[wpv-layout-end]

4. Once both your views are ready, you can include the combined code of this carousal in your "Template for Available space" through a text block like this:


<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
	<!-- Indicators -->
	<ol class="carousel-indicators">
	[wpv-view name="view-to-show-carousal-controls"]
	</ol>

	<!-- Wrapper for slides -->
	<div class="carousel-inner" role="listbox">
	[wpv-view name="view-to-show-carousal-slides"]
	</div>

	<!-- Controls -->
	<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
	<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
	<span class="sr-only">Previous</span>
	</a>
    <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
	<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
	<span class="sr-only">Next</span>
    </a>
</div>

Note: Please replace "view-to-show-carousal-controls" with the actual slug of your view generated in step 3 and "view-to-show-carousal-slides" with the actual slug of your view "Available space image gallery".

5. At this stage, the image carousel gallery will be working, but the images won't be opening in lightbox/popup.

For that part, you'll install the "WP jQuery Lightbox" ( https://wordpress.org/plugins/wp-jquery-lightbox/ ) and gallery images will automatically open in a lightbox/popup when clicked. We've already included rel="lightbox[]" in the gallery image's code in step 2, which is all this plugin requires.

I hope this helps and please let me know if you need any further assistance around this.