Hello,

I'm trying to debug those two issues:
http://jira.xwiki.org/browse/XPDFECA-11
http://jira.xwiki.org/browse/XPDFECA-12

to easy my debugging work, I've installed jetty-based 6.3 xwiki enterprise distro and I'm editing files directly in it (so far just velocity macros hacking). Now I'm in templates/macros.vm which looks like it is kind of processed into skins/flamingo/macros.vm -- so I'm editing directly this file and restarting xwiki server after every change. I'm testing on a page:

<page code>
This is a page to test pdf export facility. Let's link all the pages here:

[[Page1]]
[[Page2]]
[[Page3]]
[[Page4]]
[[Page5]]

Now, let's test if we're able to pdf export groovy script output.
{{groovy}}
println 10;
println "[[Page6]]"
{{/groovy}}

</page code>

Now, the problem is that for this testing page I get just links to Page1 to Page5. The link to Page6 is missing. I've modified includeLinks to include this code:

#macro(includeLinks $page $withPageBreaks)
 hacked includeLinks is in effect -- 2 -- flamingo!!!!
 What is clevel?: $clevel
 #if($clevel && $clevel!=0)
  we are working on a page: $page
  #set($pageDoc = $xwiki.getDocument($page))
  All links are:<br>
  #foreach($child in $pageDoc.getLinks())
    #set($childDocName = $child.getLink())
    $childDocName<br>
  #end



so I can see all the links. So it looks like to fix that I'll need to kind of pre-render the page somehow and then obtain links from the rendered data -- or kind of that. Is there some functionality for this already presented in XWiki? If so, any hint where it is is highly appreciated here!

Thanks a lot,
Karel
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to