Member
Member
imagepet   2016-12-05, 22:27
#1
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.
Administrator
Administrator
fretzl   2016-12-06, 10:45
#2
In the theme's `image.php` you'll find:
```

<?php echo gettext('View meta data'); ?>
<?php printImageMetadata(NULL, ''); ?>

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

<?php echo gettext('View meta data'); ?>
<?php printImageMetadata(NULL, ''); ?>

```
More info: http://demos.jquerymobile.com/1.1.2/docs/content/content-collapsible.html
Member
Member
imagepet   2016-12-06, 22:43
#3
Hi Fretzl,
Thanks, works perfect.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.