[greenstone-users] Number of pages in PagedImg collection

From Vladimir Risojevic
DateWed Jun 4 18:12:15 2008
Subject [greenstone-users] Number of pages in PagedImg collection
In-Reply-To (A01483A083934A67A7813DAAF6CC70EB-orsna-gov-ar)
Thanks Diego, it works.

There's another question that popped up in the meantime. Is it possible
to access metadata from macros? I added a metadata field with the path
to the pdf version of the document, and I would like to add a link to it
in the navigation bar.

Cheers,

Vladimir

Diego Spano wrote:
> Vladimir,
>
> Keep in mind that each page of a paged document is a section that belongs to
> a parent document, so [Title] will show the page title (in this case the
> title is the page number) and [parent:Title] will show the document title,
> ie: "Greenstone user`s guide".
>
> To show the total number of pages you have to use [parent:NumPages].
>
> Hope this helps.
>
> Diego Spano
>
> -----Mensaje original-----
> De: greenstone-users-bounces@list.scms.waikato.ac.nz
> [mailto:greenstone-users-bounces@list.scms.waikato.ac.nz] En nombre de
> Vladimir Risojevic
> Enviado el: martes, 03 de junio de 2008 10:32
> Para: greenstone-users@list.scms.waikato.ac.nz
> Asunto: [greenstone-users] Number of pages in PagedImg collection
>
> Dear all,
>
> I have a PagedImg collection and documenttype is set to paged. I don't like
> the default layout of previous and next arrows and 'go to page' box so I
> arranged them on my own. However, I want to write the current page and total
> number of pages, which are part of the default arrangement of those
> controls. I figured out that the current page is in ex.Title for each page
> but I don't know how to get the total number of pages.
>
> Best regards,
>
> Vladimir
>
> --
> Vladimir Risojevic
> Teaching Assistant
> Faculty of Electrical Engineering
> University of Banjaluka
> Patre 5
> 78000 Banjaluka
> Bosnia and Herzegovina
>
> Phone: +387 51 221 847, +387 51 221 876
> Fax: +387 51 211 408
> Email: vlado@etfbl.net
> WWW: http://www.etfbl.net
>
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>
>


--
Vladimir Risojevic
Teaching Assistant
Faculty of Electrical Engineering
University of Banjaluka
Patre 5
78000 Banjaluka
Bosnia and Herzegovina

Phone: +387 51 221 847, +387 51 221 876
Fax: +387 51 211 408
Email: vlado@etfbl.net
WWW: http://www.etfbl.net