How to include HTML header/footer in Orbeon forms

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

How to include HTML header/footer in Orbeon forms

jasonskwok
Hi,

I might have asked a very similar question before, but this question
is just simply:

Can Orbeon do something like what PHP does in the following way to
include an HTML header/footer in a web page?

<?PHP include $DOCUMENT_ROOT.'/../templates/header.html' ?>

Someone mentioned the page-flow allows this, but is there an example?

Thank you!

J



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: How to include HTML header/footer in Orbeon forms

Erik Bruchez
Administrator
Jason,

You can do this my modifying the theme stylesheet. The recommended way
is as follows:

* Copy config/theme-plain.xsl to config/theme-mytheme.xsl (where
"mytheme" is a name you choose)

* Modify epilogue-servlet.xpl to point to config/theme-mytheme.xsl
instead of config/theme-plain.xsl.

Then you can modify config/theme-mytheme.xsl as you wish, including
adding a header and footer. You can put them directly in the stylesheet,
or use XInclude to include separate header and footer files.

This may sound a little complicated, we have a plan to make epilogue and
theme configuration easier in the future.

-Erik

Jason Kwok wrote:

> Hi,
>
> I might have asked a very similar question before, but this question
> is just simply:
>
> Can Orbeon do something like what PHP does in the following way to
> include an HTML header/footer in a web page?
>
> <?PHP include $DOCUMENT_ROOT.'/../templates/header.html' ?>
>
> Someone mentioned the page-flow allows this, but is there an example?
>
> Thank you!
>
> J
>
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws