RE: Hi everyone, How can use management-toolbar for advanced search

lau gavin, modified 7 Years ago. New Member Post: 1 Join Date: 9/26/13 Recent Posts

Hello everyone ,I want to use the advanced search in the management-toolbar of clay tld.

&lt;clay:management-toolbar&nbsp;<br> &nbsp; creationMenu="&lt;%=taskManagementToolbarDisplayContext.getCreationMenu() %&gt;"&nbsp;<br> &nbsp; clearResultsURL="&lt;%=taskManagementToolbarDisplayContext.getClearResultsURL()%&gt;"&nbsp;<br> &nbsp; searchActionURL="&lt;%=taskManagementToolbarDisplayContext.getSearchActionURL() %&gt;"<br> &nbsp; showSearch="&lt;%=true %&gt;"<br> &nbsp; searchContainerId="entries"<br> &nbsp; selectable="&lt;%=false %&gt;"<br> &nbsp; showAdvancedSearch="&lt;%=true %&gt;"<br> &nbsp; viewTypeItems="&lt;%=taskManagementToolbarDisplayContext.getViewTypeItems() %&gt;"<br> &nbsp; /&gt;

I know to set showAdvancedSearch to be true.It shows below.

 

 

But how can I put the advanced search form UI.

I have viewed the code of clay in ManagementToolBar.soy

    {if $showAdvancedSearch}<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{call ClayDropdown.render}<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{param contentRenderer: $contentRenderer /}<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{param icon: 'angle-down' /}<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{param items: [] /}<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{param spritemap: $spritemap /}<br> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;{/call}<br> &nbsp;&nbsp;&nbsp;{/if}

But I do not know how to set the value of contentRenderer in the tag of management-toolbar.

thumbnail
Marco Napolitano, modified 6 Years ago. New Member Posts: 20 Join Date: 2/14/12 Recent Posts
Hi!
I have the same problem. Did you find a solution?
I found that "contentRenderer" is just a String and its default value is "hiddenInputsForm".
Unfortunately Liferay portal code doesn't use the advanced search...
Marco
Herng Wah Chong, modified 5 Years ago. New Member Post: 1 Join Date: 7/6/20 Recent Posts
<p>i found this from api document:</p>

<p>contentRenderer<br />
Name of the content renderer to use template variants.</p>

<p>but where to add template variants?</p>
tarun verm, modified 6 Years ago. New Member Posts: 2 Join Date: 6/27/19 Recent Posts
Did you find a solution ? 
tarun verm, modified 6 Years ago. New Member Posts: 2 Join Date: 6/27/19 Recent Posts
Hey Did you find any solution to add Advance Search ?
Lehel Mezei, modified 6 Years ago. New Member Post: 1 Join Date: 9/11/19 Recent Posts
Hello,
Have you found the solution to this problem?
Lehel 
thumbnail
Marco Napolitano, modified 5 Years ago. New Member Posts: 20 Join Date: 2/14/12 Recent Posts
Unfortunately, the block code in ManagementToolBar.soy is disappeared on Liferay 7.1.3:
[code]{if $showAdvancedSearch}
&nbsp; &nbsp; {call ClayDropdown.render}
&nbsp; &nbsp; &nbsp; &nbsp; {param contentRenderer: $contentRenderer /}
&nbsp; &nbsp; &nbsp; &nbsp; {param icon: 'angle-down' /}
&nbsp; &nbsp; &nbsp; &nbsp; {param items: [] /}
&nbsp; &nbsp; &nbsp; &nbsp; {param spritemap: $spritemap /}
&nbsp; &nbsp; {/call}
{/if}

Inside the ManagementToolBar.soy file now there's a call to the ClayManagementToolbar.render component but I don't know where it's been defined.