Escaffre Alain wrote:
Hello,
to add you user_dashboard fragment, you can use a "region fragment"


it depends, the 'region fragment' is a sort of a slot, it needs a name, then you can do in your JSF template.:

<ui:define name="region name">
... content here
</ui:define>


Otherwise use the generic fragment as you did to insert the content of the JSF template directly.

Maybe there is a typo in: <class> org.nuxeo.theme.jsf.views.JSFView</class> (the leading space)

Look in the debug log (server.log), you will see the reason why it isn't displayed.

/JM


On 4/26/07, *Chaffangeon Brice* < [EMAIL PROTECTED] <mailto:[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] <mailto:[email protected]>
    http://lists.nuxeo.com/mailman/listinfo/ecm


------------------------------------------------------------------------

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to