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

lau gavin modifierades för 7 År sedan. New Member Skicka: 1 Anslutningsdatum: 2013-09-26 Senaste inlägg

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 modifierades för 6 År sedan. New Member Inlägg: 20 Anslutningsdatum: 2012-02-14 Senaste inlägg
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 modifierades för 5 År sedan. New Member Skicka: 1 Anslutningsdatum: 2020-07-06 Senaste inlägg
<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 modifierades för 6 År sedan. New Member Inlägg: 2 Anslutningsdatum: 2019-06-27 Senaste inlägg
Did you find a solution ? 
tarun verm modifierades för 6 År sedan. New Member Inlägg: 2 Anslutningsdatum: 2019-06-27 Senaste inlägg
Hey Did you find any solution to add Advance Search ?
Lehel Mezei modifierades för 6 År sedan. New Member Skicka: 1 Anslutningsdatum: 2019-09-11 Senaste inlägg
Hello,
Have you found the solution to this problem?
Lehel 
thumbnail
Marco Napolitano modifierades för 6 År sedan. New Member Inlägg: 20 Anslutningsdatum: 2012-02-14 Senaste inlägg
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.