Icons on the user center tabs

Hello!
Since the migration from Nuxeo 5.8 to Nuxeo 6.0 I don't have icons on the tabs of the user center.
What my User center looks like now
I add new entry in the user center it like this:

<action id="UABDF" link="/incl/view_ua_config.xhtml" label="Configuration des UA"
    icon="/icons/gear_information.png" order="260">
    <category>USER_CENTER</category>
    <filter-id>not_anonymous</filter-id>
    <filter-id>hasConfigurationRights</filter-id>
</action>

There is no problem with the path of the icon.
I find this in collections-actions-contrib.xml from Nuxeo code source and it looks like my action contrib:

<action id="Collections" link="/user_center_fragment.xhtml" label="user.center.collections"
  order="80" icon="/icons/collection_tab.png">
  <category>USER_CENTER</category>
  <properties>
    <property name="alwaysDisplaySubTabs">true</property>
  </properties>
  <filter-id>not_anonymous</filter-id>
</action>

Can anyone help me please ?

FILES:   snapshot.jpg
0 votes

1 answers

2159 views

ANSWER



Found it !
I redefined the widget “hometabs” in a widget-contrib.xml and remove the action display “links” which displays only the text.

<extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
        point="widgets">

        <widget name="homeTabs" type="tabs">
          <properties mode="view">
            <property name="addForm">true</property>
            <property name="useAjaxForm">#{useAjaxTabs}</property>
            <property name="category">USER_CENTER</property>
            <property name="actions">#{userCenterViews.availableActions}</property>
            <property name="currentTabAction">#{userCenterViews.currentView}</property>
            <property name="overallDisplay">vertical_block</property>
          </properties>
        </widget>
</extension>
0 votes