........the book has 12 pages in it now but as I add pages can I use couch to automatically add page numbers?
Well thats really very simple...
As we had already discussed, the pages of the flipbook will be added using the repeatable regions. The repeatable regions has an attribute "start_count". This attribute will solve all your problems.
You can do the following (for example)
- Code: Select all
<cms:repeatable ... startcount='1'>
...
...
...
</cms:repeatable>
<cms:show_repeatable '...'>
Page No. <cms:show k_count />
</cms:show_repeatable>
"startcount" variable's value will decide the output of the "k_count" variable...
If you use a startcount='0'
k_count values will be: 0,1,2,3..., till the number of repeatable (image) regions are counted by the <cms:show_repeatable>...</cms:show_repeatable> tag.
I suppose this shall be helpful.
Regards,
Aashish