Lazyest Gallery Extra Fields

What are Extra Fields?

By default, Lazyest Gallery supports two editable fields for Folders and Images: Caption and Description. I have got many requests to add extra fields in the Lazyest Gallery plugin. However, honoring these requests would mean increasing the size of the plugin and confronting users with fields they do not (want to) use. To cope with this, an extra plugin is bundled in the Lazyest Gallery named Lazyest Gallery Extra Fields. By activating this plugin you will add extra fields functionality to Lazyest Gallery.

Setting Extra Fields

After you have activated the Lazyest Gallery Extra Fields plugin, an extra box will appear in the Lazyest Gallery Settings Screen.

Use this box to set the properties for your extra fields.

  • Name

    The 'system' name for your field. This name is used to store your field and in your gallery display as an element class. Avoid spaces, and non-ascii characters in the name. Some field names are in use by the Lazyest Gallery plugin. You cannot choose:
    'data', 'folder', 'fdescription', 'order', 'visibility', 'id', 'folderdate', 'role', 'filename', 'caption', 'description', 'image', 'index', 'imagedate', 'photo', 'editor', 'authors' nor 'viewer_level'.

  • Display Name

    The text to display a field heading in your Gallery. This could be any text you like.

  • Type

    Choose between a field for an Image or for a Folder

  • Editable

    Check this if you want the extra field to appear in the Edit Folder screen to enter field values manually. If you leave this unchecked, you will have to write your own code to enter the field values.

Styling Extra Fields

The markup for an extra field with Name='my_folder_field' and Display Name='My Field' would look like:

<div class="extra-field my_folder_field">
  <span class="name">My Field</span> <span class="value">Just a Field</span>
</div>

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>