zenphoto forums » Themes

Metadata de-collapsed

(3 posts)
  • Started 4 months ago by imagepet
  • Latest reply from imagepet

No tags yet.

  1. imagepet

    Member
    Joined: Aug '16
    Posts: 13

    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 4 months ago #
  2. Zenphoto development team
    fretzl

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

    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 4 months ago #
  3. imagepet

    Member
    Joined: Aug '16
    Posts: 13

    Hi Fretzl,
    Thanks, works perfect.

    Posted 4 months ago #

RSS feed for this topic

Reply

You must log in to post.