Master Page

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

Master Page

SD
Hi,

How do I achieve a masterpage, My application has a dynamic header, a dynamic menu and a static footer.
I want to create a masterpage that is imported in all pages.

eg: http://www.orbeon.com/forms/download

the top and the left navigation as well as the footer on the above url remain static, while only the body of the page gets populated based on users click.

How can I achieve the same.

Thanks for the help.
Reply | Threaded
Open this post in threaded view
|

Re: Master Page

Hank Ratzesberger-2
Hi,

I have use XInclude to make footers the same for all my pages.
The footers even include the date, which is unique to each page,
by using XForms:output.

So, since you can use both XForms and XSLT, you should be able
to use a template like system for common elements.

I hope that is something like what you had in mind.

Cheers,
Hank



On Jan 6, 2011, at 10:22 AM, ssethia wrote:

>
> Hi,
>
> How do I achieve a masterpage, My application has a dynamic header, a
> dynamic menu and a static footer.
> I want to create a masterpage that is imported in all pages.
>
> eg: http://www.orbeon.com/forms/download
>
> the top and the left navigation as well as the footer on the above url
> remain static, while only the body of the page gets populated based on users
> click.
>
> How can I achieve the same.
>
> Thanks for the help.
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Master-Page-tp3177922p3177922.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
> OW2 mailing lists service home page: http://www.ow2.org/wws
Hank Ratzesberger
NEES@UCSB
Earth Research Institute
6707 Ellison Hall
University of California, Santa Barbara
805-893-8042









--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Master Page

Ralf Jung
Hi,

the way the Orbeon site does it is by editing the page epilogue theme. You can
specify your own theme by editing the properties-local.xml file:
<property as="xs:anyURI"  name="oxf.epilogue.theme" value="oxf:/config/theme-
custom.xsl"/>
Check the existing "theme-*.xsl" files to see how such epilogues look like.
They are the easiest way to create a "corporate look",a s you do not have to
manually XInlcude anything anywhere.

Kind regards,
Ralf

Am Donnerstag 06 Januar 2011, um 19:34:02 schrieb Hank Ratzesberger:

> Hi,
>
> I have use XInclude to make footers the same for all my pages.
> The footers even include the date, which is unique to each page,
> by using XForms:output.
>
> So, since you can use both XForms and XSLT, you should be able
> to use a template like system for common elements.
>
> I hope that is something like what you had in mind.
>
> Cheers,
> Hank
>
> On Jan 6, 2011, at 10:22 AM, ssethia wrote:
> > Hi,
> >
> > How do I achieve a masterpage, My application has a dynamic header, a
> > dynamic menu and a static footer.
> > I want to create a masterpage that is imported in all pages.
> >
> > eg: http://www.orbeon.com/forms/download
> >
> > the top and the left navigation as well as the footer on the above url
> > remain static, while only the body of the page gets populated based on
> > users click.
> >
> > How can I achieve the same.
> >
> > Thanks for the help.
>
> Hank Ratzesberger
> NEES@UCSB
> Earth Research Institute
> 6707 Ellison Hall
> University of California, Santa Barbara
> 805-893-8042


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Master Page

Hank Ratzesberger-2
Yes, I agree. The theme is the universal way to handle this, but it does
require some skill with XSLT.  I needed some customization, but even
that could likely be done with XSLT.

--Hank



On Jan 6, 2011, at 11:00 AM, Ralf Jung wrote:

> Hi,
>
> the way the Orbeon site does it is by editing the page epilogue theme. You can
> specify your own theme by editing the properties-local.xml file:
> <property as="xs:anyURI"  name="oxf.epilogue.theme" value="oxf:/config/theme-
> custom.xsl"/>
> Check the existing "theme-*.xsl" files to see how such epilogues look like.
> They are the easiest way to create a "corporate look",a s you do not have to
> manually XInlcude anything anywhere.
>
> Kind regards,
> Ralf
>
> Am Donnerstag 06 Januar 2011, um 19:34:02 schrieb Hank Ratzesberger:
>> Hi,
>>
>> I have use XInclude to make footers the same for all my pages.
>> The footers even include the date, which is unique to each page,
>> by using XForms:output.
>>
>> So, since you can use both XForms and XSLT, you should be able
>> to use a template like system for common elements.
>>
>> I hope that is something like what you had in mind.
>>
>> Cheers,
>> Hank
>>
>> On Jan 6, 2011, at 10:22 AM, ssethia wrote:
>>> Hi,
>>>
>>> How do I achieve a masterpage, My application has a dynamic header, a
>>> dynamic menu and a static footer.
>>> I want to create a masterpage that is imported in all pages.
>>>
>>> eg: http://www.orbeon.com/forms/download
>>>
>>> the top and the left navigation as well as the footer on the above url
>>> remain static, while only the body of the page gets populated based on
>>> users click.
>>>
>>> How can I achieve the same.
>>>
>>> Thanks for the help.
>>
>> Hank Ratzesberger
>> NEES@UCSB
>> Earth Research Institute
>> 6707 Ellison Hall
>> University of California, Santa Barbara
>> 805-893-8042
>
> --
> 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
> OW2 mailing lists service home page: http://www.ow2.org/wws
Hank Ratzesberger
NEES@UCSB
Earth Research Institute
6707 Ellison Hall
University of California, Santa Barbara
805-893-8042









--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
SD
Reply | Threaded
Open this post in threaded view
|

Re: Re: Master Page

SD
In reply to this post by Ralf Jung
Hi,

The content of the left panel is static in this example http://www.orbeon.com/orbeon/xforms-bookcast/

How do we handle this if the entire left menu is dynamically pulled based on user.

eg: Suppose there are 2 kinds of users, a normal user and an admin user. A normal user gets the Get Started and the Form Builder/Runner menu items while an admin user gets the all menu items. This access control on the menu item is defined in an xml file stored in a db. The xml file looks something like this
<users>
        <user>
                <type>normal</type>
                <access>Get Started;Form Builder/Runner</access>
        </user>
        <user>
                <type>admin</type>
                <access>Get Started;Form Builder/Runner;Essential XForms;XForms Tutorial Apps;More XForms;Page Flow;Integrating with Java</access>
        </user>
</users>

I'm trying to figure out how to pass the instance from the model to the app-list.xml (located under WEB-INF\resources\) file via epilogue.

I want to achieve a dynamic left menu based on user login.

Thanks for the help.
DL
Reply | Threaded
Open this post in threaded view
|

Re: Re: Master Page

DL
The way I'm approaching this is to create a "hybrid" of a conventional CMS (WordPress or Drupal) where the user authentication etc. can be handled by a (html/php) CMS and orbeon deals with the xforms embedded in iframes.

PHP WordPress (or other CMS such as Drupal - but a bit tougher to learn) can run on same tomcat server as orbeon .. deploying quercus servlet (http://www.caucho.com).

Or you can setup a front end Apache server with backend tomcat server (orbeon).

Consider WordPress or Drupal as your xforms "container" and you can wrap different menus and themes around your xforms.

...

There might be other ways of achieving this (user management and theming) entirely in orbeon .. but I haven't worked it out yet.   So Orbeon is my xforms engine and the rest is done in a conventional CMS.
SD
Reply | Threaded
Open this post in threaded view
|

Re: Re: Master Page

SD
User management is handled using JSP's. The problem I'm trying to solve is to get the user roles populate the left menu.
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Master Page

Erik Bruchez
Administrator
Can you access those user roles from XForms?

If so, you could use the XForms engine preprocessing step, configured
with these properties:

    <property as="xs:boolean" name="oxf.epilogue.xforms.preprocessing"
                     value="false"/>
    <property as="xs:anyURI"
name="oxf.epilogue.xforms.preprocessing.uri"
value=""/>

You must specify the URL of an XPL file, which can then preprocess
your page and add the navigation.

If that navigation contains XForms, that will be interpreted by the
XForms engine too.

-Erik

On Thu, Jan 13, 2011 at 11:56 AM, ssethia
<[hidden email]> wrote:

>
> User management is handled using JSP's. The problem I'm trying to solve is to
> get the user roles populate the left menu.
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Master-Page-tp3177922p3216534.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.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
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws