oxf.epilogue.theme vs oxf.epilogue.theme.renderer

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

oxf.epilogue.theme vs oxf.epilogue.theme.renderer

mabu
Hi,

I cannot figure out when the properties "oxf.epilogue.theme" and "oxf.epilogue.theme.renderer" are applied?
I found it in the code https://github.com/orbeon/orbeon-forms/blob/master/src/resources-packaged/config/epilogue-servlet.xpl#L81 but I don't get the point. Is there somewhere a doc?
What is the difference between these two properties?

Martin
Reply | Threaded
Open this post in threaded view
|

Re: oxf.epilogue.theme vs oxf.epilogue.theme.renderer

Alessandro  Vernet
Administrator
Hi Martin,

See:
http://doc.orbeon.com/configuration/properties/general.html#oxfepiloguetheme
http://doc.orbeon.com/configuration/properties/general.html#oxfepiloguethemerenderer

oxf.epilogue.theme.renderer is only used if you're using integrated or separate deployment through the XForms filter, which hopefully you won't need to use.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: oxf.epilogue.theme vs oxf.epilogue.theme.renderer

mabu
Hi Alex,

thank you for the links to the doc.

So my understanding is:

1.) oxf.epilogue.theme is the overall default theme
2.) form runner has it's own theme under resources/apps/fr
3.) not-found.xhtml and unauthorized.xhtml use the default theme from oxf.epilogue.theme
4.) error page uses the theme defined in oxf.epilogue.theme.error
5.) if I want a consistent layout for the error, not-found and unauthorized page I simply have to change oxf.epilogue.theme.error = oxf.epilogue.theme

Martin
Reply | Threaded
Open this post in threaded view
|

Re: oxf.epilogue.theme vs oxf.epilogue.theme.renderer

Alessandro  Vernet
Administrator
Hi Martin,

Yes, this sounds right. About point 2, note that there is nothing magical about Form Runner: for any app, the theme.xsl that is inside that app directory, if there is one, is used in place of the one pointed to by oxf.epilogue.theme. You can see that logic implemented in XPath in:

https://github.com/orbeon/orbeon-forms/blob/tag-release-4.10-ce/src/resources-packaged/config/epilogue-servlet.xpl#L71

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: oxf.epilogue.theme vs oxf.epilogue.theme.renderer

mabu
Alex, thank you very much for your feedback.