There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-5f44621d-2133-4d23-bde4-c47e5f1f930a XWIKI-23134 Open

PDF template picker don't work for hidden templates

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-e0ad8938-2a70-4f0c-a39c-2d43f124a239 Marius Dumitru Florea on 13/May/25 09:11
 

The list of PDF export templates is stored in a Page property, so it gets the default Page picker which obeys the hidden document filter. So the problem you are describing is affecting any Page property that uses the suggest displayer. Currently, there's no way to indicate from the Page property metadata that you want to ignore the hidden documents filter when using the suggest. The only option is to use a custom displayer, but it's bad that we have to do this (duplicate the code) for any Page property that has this need. Would be nice to fix this in a generic way. I'm thinking that for any xproperty you may have the need to pass some parameters to its default displayer (instead of using a custom displayer). So we could add a generic "displayer parameters" meta property (input or textarea), whose value can be a JSON, or a URL query string. We need to see if we need support for scripting (Velocity), but we could start without it.