zenphoto forums » Themes

Metadata de-collapsed

(3 posts)
  • Started 1 month ago by imagepet
  • Latest reply from imagepet
  1. imagepet

    Junior
    Joined: Aug '16
    Posts: 9

    Hi everybody!

    I'm using a customized version of the zpmobile theme and it works pretty good. When displaying the image metadta with the printImageMetadata function, the tag is collapsed or let's say closed by default. When you click on it, it is de-collapsed or opened.
    I wanted to display the tag de-collapsed or opened by default. Any ideas? Help is welcome.

    Thanks.

    Posted 1 month ago #
  2. Zenphoto development team
    fretzl

    Zenphoto team
    Joined: Sep '08
    Posts: 1,070

    In the theme's image.php you'll find:

    <div data-role="collapsible">
     <h3><?php echo gettext('View meta data'); ?></h3>
     <?php printImageMetadata(NULL, ''); ?>
    </div>

    Simply add a data-collapsed="false" attribute to the div like this:

    <div data-role="collapsible" data-collapsed="false">
     <h3><?php echo gettext('View meta data'); ?></h3>
     <?php printImageMetadata(NULL, ''); ?>
    </div>

    More info: http://demos.jquerymobile.com/1.1.2/docs/content/content-collapsible.html

    Don't forget to read the Forum rules and usage resources
    Posted 1 month ago #
  3. imagepet

    Junior
    Joined: Aug '16
    Posts: 9

    Hi Fretzl,
    Thanks, works perfect.

    Posted 1 month ago #

RSS feed for this topic

Reply

You must log in to post.