
bret at pectopah
Nov 10, 2010, 2:14 PM
Post #2 of 2
(406 views)
Permalink
|
Hi Rolf, > when I have a story with a "paged" subelement, how can I get how many of them there are in total ( for instance to display a "page n of N" info). > I could find anything here. If each page is a subelement, you can just check the size of the array returned by $element->get_containers($page_element_key_name). So: my $pagecount = scalar($element->get_containers($page_element_key_name)); > Another question to set_burn_again: > As far as I understand this function, i could split a list of N "whatever" to be displayed in chunks of n whatever on several pages. > Is there a way where I can get the "counter", which page i'm currently burning or do I have to store in in burner->notes and increment it myself ? The value returned by $burner->get_page() is the number of the current page minus one. So it's false on page 1, and a positive integer for all other pages Hope this helps, Bret > > Rolf > > > > > > > -- Bret Dawson Producer Pectopah Productions Inc. (416) 895-7635 bret [at] pectopah www.pectopah.com
|