MultiThumblist

This page is a recipe on how to create a shortcut (:multithumblist:) which can display all thumbnails from a list of pages. This recipe works both with the old and the new versions ot Thumblist.

Note that the recipe works best with per-page uploads, while this wiki has per-group uploads.

(:multithumblist "T.Order,T.Sandbox" px=30 count=3:)
2014-11-29T14.01.20-PB297709-Sin.jpeg: 444x351, 13k (2015-03-16 23:22) A_smoky_day_at_the_Sugar_Bowl--Hupa.jpg: 472x640, 50k (2009-02-13 12:30) 2014-11-29T14.01.20-PB297709-Sin.jpeg: 444x351, 13k (2015-03-16 23:22) A_smoky_day_at_the_Sugar_Bowl--Hupa.jpg: 472x640, 50k (2009-02-13 12:30)

The above is the same as writing :

 
(:thumblist T.Page1 px=30 count=1 quiet=3:)
(:thumblist T.Page2 px=30 count=1 quiet=3:)
(:thumblist T.Page3 px=30 count=1 quiet=3:)

etc. We are using quiet=3 to prevent warning messages for pages where there are no uploaded pictures.

To enable the multithumblist markup, add the following code to your config.php:

Markup_e('multithumblist', '<thumblist',
  '/\\(:multithumblist\\s*(.*?):\\)/i',
  "FmtMultiThumbList(\$pagename,PSS(\$m[1]))");
function FmtMultiThumbList($pagename, $args) {
  $r = ''; $opt = ParseArgs($args);
  $pagelist = ListPages( @$opt[''][0] );
  foreach($pagelist as $v)$r .= "(:thumblist $v $args:)";
  return $r;
}

To display a list of every first thumbnail in a gallery page, with a link to the gallery itself, we can do it with link=2:

 (:multithumblist "T.*" px=40 count=1 titlefmt="Visit ?p" link=2 quiet=3:)