Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Hi everyone, How can use management-toolbar for advanced search
Hello everyone ,I want to use the advanced search in the management-toolbar of clay tld.
<clay:management-toolbar <br>
creationMenu="<%=taskManagementToolbarDisplayContext.getCreationMenu()
%>" <br>
clearResultsURL="<%=taskManagementToolbarDisplayContext.getClearResultsURL()%>" <br>
searchActionURL="<%=taskManagementToolbarDisplayContext.getSearchActionURL()
%>"<br> showSearch="<%=true %>"<br>
searchContainerId="entries"<br>
selectable="<%=false %>"<br>
showAdvancedSearch="<%=true %>"<br>
viewTypeItems="<%=taskManagementToolbarDisplayContext.getViewTypeItems()
%>"<br> />
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> {call
ClayDropdown.render}<br> {param
contentRenderer: $contentRenderer /}<br>
{param icon: 'angle-down' /}<br> {param
items: [] /}<br> {param spritemap:
$spritemap /}<br> {/call}<br> {/if}
But I do not know how to set the value of contentRenderer in the tag of management-toolbar.
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
<p>contentRenderer<br />
Name of the content renderer to use template variants.</p>
<p>but where to add template variants?</p>
Have you found the solution to this problem?
Lehel
[code]{if $showAdvancedSearch}
{call ClayDropdown.render}
{param contentRenderer: $contentRenderer /}
{param icon: 'angle-down' /}
{param items: [] /}
{param spritemap: $spritemap /}
{/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.
Powered by Liferay™