dealing with page numbers

khrypt <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi guys,
I'm a new user of FM and I need some help from you.
I'm working with some documents and encountered an issue I could not manage
yet..
So, int this documents there are some informations that may or may not
appear. If they do appear I have to know the number of that page. Here is
the issue. 
By declaring a variable called pageNumber like:
[#assign pageNumber = "<s p a n   id="pagenumber"/>" /] I can get the number
of the page.
But next, I need to remember this number. So I declare another variable
controlPage like:
[#assign controlPage = pageNumber /]... And here is the issue... This
*controlPage* will always evaluate as *<s p a n   id="pagenumber"/>* but I
need to be just the value at that point/position where I've done the
assignment. Because if I'm printing the *controlPage* in all pages it will
have the value of current page (ex. 2, 3, 4, 5...) even if my declaration
was made somewhere on first page and I expect (1, 1, 1, 1, ...).

Thank you for your time.




--
View this message in context: http://freemarker.624813.n4.nabble.com/dealing-with-page-numbers-tp4654414.html
Sent from the freemarker-user mailing list archive at Nabble.com.

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.