Re: dealing with page numbers

khrypt <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hi Daniel, thank you for you attention.
First:
/"What do mean by you can get it? How? You have just assigned a constant
string to `pageNumber`. (Barring the syntactical error; I assume it
was `[#assign pageNumber = '<spa n id="pagenumber" />' /]`.) It means
nothing for FreeMarker, it's just an arbitrary sequence of characters
for it."/
-- the syntactical error I've made-it intentionally here.. yes, this is the
correct declaration.

Second:
/"So now `controlPage` holds the same string constant. I guess you
expect something else to happen, but what exactly and why?"/
-- well, here I was expecting to get the value of that instruction.. This
span is a css instruction defined as:
#pagenumber:before {content: counter(page);} and in the final step of
processing the document it will give me the number of current page.

Third:
/"The value of what at the point assignment? The current page number?
What keeps track of the current page number?* Or if nothing yet*, what
separates the pages? Because at those points you could increase a page
counter variable."/
-- here you have a point, probably if no for certain at the "freemarker
step" my variables are just some strings, and only in the last step "to pdf"
this strings will be evaluated as css directives. Didn't thought about it
until now. And this mean that I'm screwed....
Fourth:
"Um... the whole thing is rather strange. What are those spans, and why
are they relevant? How do you expect them to count the pages, if you
do at all? "
-- Yes, this are css directives for counting pages. They are perfectly
working. Because of my lack of knowledge I've tried to combine css and
freemarker... Didn't work out. That's it. Thank you again for your time.



--
View this message in context: http://freemarker.624813.n4.nabble.com/dealing-with-page-numbers-tp4654414p4654417.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.