04-26-2011 08:50 AM
<config replace="true" evaluator="string-compare" condition="AdvancedSearch">
<advanced-search>
<forms>
<!– disable default so only our document type shows up:
<form labelId="search.form.label.cm_content" descriptionId="search.form.desc.cm_content">cm:content</form>
<form labelId="search.form.label.cm_folder" descriptionId="search.form.desc.cm_folder">cm:folder</form>
–>
<form id="mycustomsearch" label="mycustom" description="mycustom">mycustom:document</form>
</forms>
</advanced-search>
</config>
<config evaluator="node-type" condition="mycustom:document">
<forms>
<form>
<field-visibility>
<!– these don't seem to matter
<show id="cm:title" />
<hide id="cm:name" />
<hide id="cm:description" />
<hide id="mimetype" />
<hide id="cm:author" />
<hide id="size" />
<hide id="cm:creator" />
<hide id="cm:modifier" />
<hide id="cm:modified" />
<show id="cm:created" for-mode="view" />
–>
<show id="mycustom:fullname" />
</form>
<!– search form id type, but doesn't seem to help –>
<form id="search">
<field-visibility>
<!– these don't seem to matter
<show id="cm:title" />
<hide id="cm:name" />
<hide id="cm:description" />
<hide id="mimetype" />
<hide id="cm:author" />
<hide id="size" />
<hide id="cm:creator" />
<hide id="cm:modifier" />
<hide id="cm:modified" />
<show id="cm:created" for-mode="view" />
–>
<show id="mycustom:fullname" />
</form>
<!– trying form id from advsearch config –>
<form id="mycustomsearch">
<field-visibility>
<!– these don't seem to matter
<show id="cm:title" />
<hide id="cm:name" />
<hide id="cm:description" />
<hide id="mimetype" />
<hide id="cm:author" />
<hide id="size" />
<hide id="cm:creator" />
<hide id="cm:modifier" />
<hide id="cm:modified" />
<show id="cm:created" for-mode="view" />
–>
<show id="mycustom:fullname" />
</form>
<!– page name is advsearch, trying that –>
<form id="advsearch">
<field-visibility>
<!– these don't seem to matter
<show id="cm:title" />
<hide id="cm:name" />
<hide id="cm:description" />
<hide id="mimetype" />
<hide id="cm:author" />
<hide id="size" />
<hide id="cm:creator" />
<hide id="cm:modifier" />
<hide id="cm:modified" />
<show id="cm:created" for-mode="view" />
–>
<show id="mycustom:fullname" />
</form>
04-28-2011 12:19 PM
Tags
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.