On 08/01/2012 09:18 AM, Elena Roman wrote:
Hi,
I need to compile all pages (from parent to children) to one pdf
document.
Pages may contain a piece of data not to be included to the final
document. This piece of data can be bound with [Exclude] ... [/Exclude]
tags, or smth like this. Currently I see the only way to do it with
parsing the each page 'String' content before including it to the output
document and get rid of these pieces. But currently I experience some
issues with this approach and it seems not clean.
Is there another way around? Or maybe some doc links.
<sorry if the question is too dumb, I have just started with the xwiki>
You can do two things:
- wrap that content in a block with a classname, and you write a special
rule for that classname in pdf.css so that it is hidden (display:none)
- wrap it in a velocity block that checks #if ($xcontext.action != 'export')
P.S.: This is a question for the users list.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/