Galleries

Managing and creating galleries in Flux CMS is quite easy. Basically, it just takes the files from one directory and displays the pictures in it. You can upload them via the admin interface with the "Create new file" command or upload whole zips with the "Create new archive" command. If you have FTP or Shell access to your account, you can also upload the images this way (but see the note)

In the default installation, there's already a gallery collection. You can start right away putting images in there.

You can also resize, rotate or crop once uploaded images. See the image editor docs for further details.

Note: As we serve images (for performance reasons) from the /files/ directory, the images show in the gallery collection are only "virtual resources", the actual images are in /files/_galleries/gallery/. They also will show up in the /files/ collection. But usually, you don't have to care about that

If you want to make a subgallery (another album) within that gallery, choose "Create new gallery" from within the popup of the /galleries/ collection, give it a name and you can then start adding new pictures.

Adding title and description to images

Click on an image icon, choose "Edit Properties". There's a title and description field for each available outputLanguage. They will show up on the single image view of the image

Editing images

You can rotate, scale and crop images, see the "Image Editor" page for details

Adding more galleries

If you want to make a new gallery in a different place, you have to make a new collection, then choose "Add .configxml" or "Edit .configxml" from the popup and then add the following code:

<?xml version="1.0"?>
<bxcms xmlns="http://bitflux.org/config">
    <plugins>
        <extension type="html"/>
        <extension type="jpg"/>
        <extension type="jpeg"/>
        <extension type="gif"/>
        <extension type="png"/>
        <parameter name="xslt" type="pipeline" 
                          value="gallery.xsl"/>
        <plugin type="gallery">
            <parameter name="columnsPerPage" value="4"/>
            <parameter name="rowsPerPage" value="4"/>
        </plugin>
        <plugin type="navitree"/>
    </plugins>
</bxcms>

That should the collection make a "gallery-collection". As you can see, you can also define how many rows and cols per page on that gallery should be displayed.