Permlink Replies: 1 - Pages: 1 - Last Post: 19-Mar-2018 17:44 Last Post By: jGromit Threads: [ Previous | Next ]
davidekholm

Posts: 3,545
Registered: 18-Oct-2002
Improved tag syntax
Posted: 14-Mar-2018 15:11
  Click to reply to this thread Reply
jAlbum 15.3 got a new generic iterator tag called ja:iterator. It iterates over both hidden objects and web pages. This enables skin developers to produce custom menus from web pages by simply writing a script in html context (sample from Zigzag skin):
<div class="menu">
<ja:iterator category="webPage,folder">
  <a href="${closeupPath}">${title}</a>
</ja:iterator>
</div>
Notice that you're allowed to specify several comma separated categories in the iterator filter.

jAlbum 15.3.1, available as a core update, now also adds the ability to specify a list of categories for the category test, like this:
<ja:if category="webPage, image, video">...</ja:if>
jGromit

Posts: 7,269
Registered: 31-Jan-2006
Re: Improved tag syntax
Posted: 19-Mar-2018 17:44   in response to: davidekholm in response to: davidekholm
  Click to reply to this thread Reply
Already using it in a new skin I'm working on. This skin will support only images - no videos, no webloc's, no pages, etc. - so a selective iterator is perfect.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums