You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#102132 JCE Pro 2.8.1 Template manager Demo: Grid gallery

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by UteS on Monday, 09 December 2019 14:01 GMT

UteS
In your demo for the newest JCE Pro there's a snippet "grid-gallery", that's very easy to use.
I copied the source code and inserted it in the JCE plugin preferences - and it worked out fine.

There's only one small problem:
In your demo - when in editing and preview mode - the 3 images are next to each other, like CSS "display:flex".

In my pure protostar test page the images are arranged one below the other, - in editor mode and in preview mode - like simple paragraphs or divs .

I could live with this small issue, but for my client it's distracting.
How and where did you insert the CSS style (or something else) that's effective in the editor?

Or is "grid-gallery" not a snippet but a template? Then: Would you be so kind to share the source code?

UteS
The screenshots are not visible. I'll try it as attachments.

Editor Demo:


My Test Page


UteS

Attachments

Ryan
I have replaced the code on the demo site with new formatting using the new Columns tool in JCE Pro 2.8, so it now looks like this:

<div class="wf-columns wf-columns-stack-small" data-wf-columns="1">
	<div class="wf-column">
		<p><img src="https://www.joomlacontenteditor.net/images/sampledata/sparrow.jpg" alt="sparrow" /></p>
	</div>
	<div class="wf-column">
		<p><img src="https://www.joomlacontenteditor.net/images/sampledata/nature.jpg" alt="nature" /></p>
	</div>
	<div class="wf-column">
		<p><img src="https://www.joomlacontenteditor.net/images/sampledata/winter.jpg" alt="winter" /></p>
	</div>
</div>
This uses the generic column styles by default, so it should display correctly on your site.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

UteS
Ryan,
that's exactly what I was looking for. 😃
In addition, it's very easy to customize the snippet code for 2 / 3 / 4 images e.g. for a small series.

Many thanks!

Ute S.