Top Banner

Breadcrumbs

Top Menu

Content

Recipe - How to create gallery right from the regular Joomla article with DJ-MediaTools

Recipe - How to create gallery right from the regular Joomla article with DJ-MediaTools4.3 out of
5
based on
6 votes.

With DJ-MediaTools you can create and insert galleries right into article when creating it.

So, for example, you’re writing an article and need to put the gallery to it.

For this tutorial let’s do it for latest smartphones - let it be Apple iPhone 5s and LG G2 with Android.

First let’s create the blank article, add a title, and some text.

Now let’s add the galleries.

To do so:

put the coursor where you want the gallery to appear

click the DJ-MediaTools album button

now you can:

create new album from the modal box, or

choose one of the albums you have already created

Create Gallery.

We choose the first option as we want to show how to create the albums from articles. As you can see from the screenshot, you can add the album/gallery same way as from the component:

now, let’s:

give a title for the album

choose the parent album (if you wish)

you can also set all other options like custom album image or album description

add the pictures

set all the possible options like layout, options, customize album

Set different layouts and settings

for this tutorial I’ll set different layouts for iPhone 5s pictures (slider with thumbnails) and other for LG G2 pictures (grid with 200px X 200px size) . Check the video of how that was done:

(as you can see on the video adding pictures as is as easy as dragging them from your folder, you can also rename them during the upload and change their ordering easily just dragging them in the order you want them to appear on frontend http://recipes.dj-extensions.com/

as you can see now in the article edit view you can see the placeholders for both galleries:

iPhone gallery placeholder

LG G2 gallery placeholder

I’ve added some headings and lorem ipsum text to make the article look more “real” and this is how the article looks like on frontend:

The article looks great now, but as usual there’s always space for improvements, so let’s change few things:

let the pictures open in modal box when clicked

hide their descriptions overlayed when hovered

The albums that were just created are regular albums you can manage in DJ-MediaTools backend. That allows you to change their layout, size, amount of pictures displayed, ordering, and many other functionalities (check documentation, demo or our youtube channel to dive into more details).Ok, so let’s tweak itgo to DJ-MediaTools component and click “Albums”

now click the album to modify (I’ll be changing the one with iPhone 5s pictures) and we can edit the settings. First the “Basic album options” (I’m focusing on only some features, you can do far more tweaks if you want):

let’s leave the album layout as it is (we could change it to any other from the list)

I’ve changed the images effect to inflitration fade

now once the image is clicked it’ll open in lightbox

for the lightbox type I choose PicBox

Now let’s check the “Layout elements options”

I’ll be not displaying the title of the images

autoplay set to “yes” so it attracts the reader more

“pause autoplay” set to “yes” so once the slider is hovered the picture would not change

I’m hiding the play/pause buttons

also let’s hide the next/prev buttons (as we have thumbnails below the big picture I don’t think they are necessary here)

now click "save".

(I’ve also applied similiar changes to the other gallery - LG G2 pictures)

Footer Menu

support

legal

other

Join to our newsletter

Stay updated and subscribe to our newsletter. Do not worry, we don't spam! Unsubscribe anytime.

Social

Secured payments

Footer

The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. DJ-Extensions.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.