Orbeon is ignoring oxf.epilogue.theme?

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

Orbeon is ignoring oxf.epilogue.theme?

javaudvikling
This post was updated on .
I'm using Orbeon 4.4.0.201311042036 PE

I am trying to set a theme for the form builder by using these two properties in properties-local.xml

<property as="xs:anyURI" name="oxf.epilogue.theme" value="oxf:/config/theme-plain.xsl"/>
<property as="xs:boolean" name="oxf.epilogue.use-theme" value="true"/>


I have modified the /config/theme-plain.xsl to add a custom header to the page.
 I have also tried creating a new file (for example: /confg/theme-custom.xsl) and pointing the property to that, but Orbeon is completly ignoring the property.

By using the url parameter: ?orbeon-theme=plain I am able to activate the modified theme-plain.xsl, but ?orbeon-theme=custom does not activate the theme-custom.xsl. (also pressing any button, ie. "Home" removes the url parameter and the theme)

How do I configure Orbeon to use the theme?

Reply | Threaded
Open this post in threaded view
|

Re: Orbeon is ignoring oxf.epilogue.theme?

Hank Ratzesberger-3

Hi, 

As I recall, that should work.  The default is the Orbeon theme that you see in the website.

And you restarted the server?  The properties, I believe, are reloaded on start up, whereas views and models get loaded/reloaded when the url is requested.

--Hank

On Wednesday, December 11, 2013, javaudvikling wrote:
I'm using Orbeon 4.4.0.201311042036 PE

I am trying to set a theme for the form builder by using these two
properties in properties-local.xml

*<property as="xs:anyURI" name="oxf.epilogue.theme"
value="oxf:/config/theme-plain.xsl"/>
<property as="xs:boolean" name="oxf.epilogue.use-theme" value="true"/>*

I have modified the /config/theme-plain.xsl to add a custom header to the
page.
 I have also tried creating a new file (for example:
/confg/theme-custom.xsl) and pointing the property to that, but Orbeon is
completly ignoring the property.

By using the url parameter: ?orbeon-theme=plain I am able to activate the
modified theme-plain.xsl, but ?orbeon-theme=custom does not activate the
theme-custom.xsl. (also pressing any button, ie. "Home" removes the url
parameter and the theme)

How do I configure Orbeon use a theme?



--
View this message in context: http://discuss.orbeon.com/Orbeon-is-ignoring-oxf-epilogue-theme-tp4657765.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;orbeon+unsubscribe@googlegroups.com&#39;)">orbeon+unsubscribe@....
To post to this group, send email to <a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;orbeon@googlegroups.com&#39;)">orbeon@....


--
Hank Ratzesberger
XMLWerks.com

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon is ignoring oxf.epilogue.theme?

javaudvikling
Hi,

The theme is not applied on the form builder summary page..

Regards
Balatharan
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon is ignoring oxf.epilogue.theme?

Alessandro  Vernet
Administrator
In reply to this post by javaudvikling
Since Form Runner "app" (app/fr) comes with its own theme, the oxf.epilogue.theme property isn't used. You can see this logic implemented in epilogue-servlet.xpl:

https://github.com/orbeon/orbeon-forms/blob/4.4-ce/src/resources-packaged/config/epilogue-servlet.xpl#L78

See the link below for the Form Runner theme, and should you want to override it, I'd recommend you put your own version in your WEB-INF/resources/apps/fr/theme.xsl.

https://github.com/orbeon/orbeon-forms/blob/master/src/resources/apps/fr/theme.xsl

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet