...
You can use a region fragment like this :
<section>
<cell>
<!-- user tasks -->
<fragment type="generic fragment" />
<!-- user workspaces -->
<fragment type="generic fragment" />
<!-- user documents -->
<fragment type="generic fragment" />
<!-- last documents -->
<fragment type="generic fragment" />
<!-- user clipboard -->
<fragment type="region fragment"/>
</cell>
</section>
and then, further in the xml file, right after the layout markup, you can
specify the property of your region fragment :
<properties element="page[3]/section[1]/cell[1]/fragment[5]">
<name>incl/dashboard_user_clipboard.xhtml</name>
<defaultBody>Cannot display user clipboard</defaultBody>
<defaultSrc>/incl/dashboard_user_clipboard.xhtml</defaultSrc>
</properties>
Maybe you should use more cells to be cleaner.
Any way, to have the exact exemple, you can implement it with Nuxeo theme
editor and upload theme file to see what it produces.
On 4/27/07, Escaffre Alain <[EMAIL PROTECTED]> wrote:
Hello,
to add you user_dashboard fragment, you can use a "region fragment"
On 4/26/07, Chaffangeon Brice < [EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm a bit confused on using themes-contrib.
> I need to add a new fragment in the dashboard (user_dashboard.xhtml) so
> I've done the following :
>
> 1. Added a new view in nxthemes-contrib.xml :
>
> <view name="nuxeo5 user clipboard">
> <format-type>widget</format-type>
> <class> org.nuxeo.theme.jsf.views.JSFView</class>
> <template>incl/dashboard_user_clipboard.xhtml</template>
> <resource>foldable-box.js</resource>
> </view>
>
> 2. Added a new cell in dashboard section, in nxthemes-setup.xml
>
> <section>
> <cell>
> <!-- user tasks -->
> <fragment type="generic fragment" />
> <!-- user workspaces -->
> <fragment type="generic fragment" />
> <!-- user documents -->
> <fragment type="generic fragment" />
> <!-- last documents -->
> <fragment type="generic fragment" />
> <!-- user clipboard -->
> <fragment type="generic fragment" />
> </cell>
> </section>
>
> 3. Added the new widget, in nxthemes-setup.xml
>
> <widget element="page[3]/section[3]/cell[1]/fragment[1]">
> <view>nuxeo5 user tasks</view>
> </widget>
>
> <widget element="page[3]/section[3]/cell[1]/fragment[2]">
> <view>nuxeo5 user workspaces</view>
> </widget>
>
> <widget element="page[3]/section[2]/cell[1]/fragment[3]">
> <view>nuxeo5 user documents</view>
> </widget>
>
> <widget element="page[3]/section[2]/cell[1]/fragment[4]">
> <view>nuxeo5 last documents</view>
> </widget>
>
> <! This is the new one -->
> <widget element="page[3]/section[2]/cell[1]/fragment[5]">
> <view>nuxeo5 user clipboard</view>
> </widget>
>
> 4. Created incl/dashboard_user_clipboard.xhtml.
>
>
> But I can't see this new widget in the dashboard page...
>
> What am I doing wrong ?
>
> Thanks
> _______________________________________________
> ECM mailing list
> [email protected]
> http://lists.nuxeo.com/mailman/listinfo/ecm
>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm