cancel
Showing results for 
Search instead for 
Did you mean: 

Customizing the Item/page dropdown feature

MEM4FP_
Champ in-the-making
Champ in-the-making

In a normal setting, the Item/page dropdown has 6 options to display the number of reports: 5, 10, 20, 30, 40, and 50. But I need to customize these settings so that I can see hundreds, so I want to change to 10, 25, 50, 100, 150, 200.

I went into the content_view_result_layout_selector.xhtml to configure this but every time I restart the nuxeo server, it goes back to the original code that was made. How can I overwrite the default in the code?

I even included this code:

   onchange="Element.next(this).firstChild.click();">
   <f:convertNumber />
   <f:selectItem itemValue="10" itemLabel="10" />
   <f:selectItem itemValue="25" itemLabel="25" />
   <f:selectItem itemValue="50" itemLabel="50" />
   <f:selectItem itemValue="100" itemLabel="100" />
   <f:selectItem itemValue="150" itemLabel="150" />
   <f:selectItem itemValue="200" itemLabel="200" />
   </h:selectOneMenu>
1 ACCEPTED ANSWER

arubiom00_
Star Contributor
Star Contributor

You'll have to create a bundle (http://doc.nuxeo.com/display/NXDOC/How+to+create+an+empty+bundle) and include the modification there.

In the bundle you can overwrite the file (not too good approach) or contribute using an extension: http://doc.nuxeo.com/display/NXDOC/How+to+Contribute+to+an+Extension

Note that the template content_view_result_layout_selector.xhtml has been deprecated from version 5.7.2. From version 6.0, the template to override is named content_view_page_size_selector.xhtml.

View answer in original post

2 REPLIES 2

arubiom00_
Star Contributor
Star Contributor

You'll have to create a bundle (http://doc.nuxeo.com/display/NXDOC/How+to+create+an+empty+bundle) and include the modification there.

In the bundle you can overwrite the file (not too good approach) or contribute using an extension: http://doc.nuxeo.com/display/NXDOC/How+to+Contribute+to+an+Extension

Note that the template content_view_result_layout_selector.xhtml has been deprecated from version 5.7.2. From version 6.0, the template to override is named content_view_page_size_selector.xhtml.

Hi,

Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.