02-06-2013 01:41 AM
<form labelId="aspect.agy_agencyDocument"
descriptionId="aspect.agy_agencyDocument.search.description">agy:agencyDocument</form>
org.alfresco.repo.forms.FormNotFoundException: 01050034 A form could not be found for item: [type]agy:agencyDocument
<config evaluator="model-type" condition="agy_agencyDocument">
<forms>
<form id="search">
<field-visibility>
<show id="cm:name" />
<show id="cm:title" force="true" />
<show id="cm:description" force="true" />
<show id="mimetype" />
<show id="cm:modified" />
<show id="cm:modifier" />
<show id="agy:agencyId" />
<show id="agy:agencyBusinessUnit" />
<show id="agy:agencyDivision" />
</field-visibility>
</form>
<appearance>
<field id="cm:description">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<field id="mimetype">
<control template="/org/alfresco/components/form/controls/mimetype.ftl" />
</field>
<field id="cm:modified">
<control template="/org/alfresco/components/form/controls/daterange.ftl" />
</field>
<field id="cm:modifier">
<control>
<control-param name="forceEditable">true</control-param>
</control>
</field>
<!– agy:agencyDocument –>
<field id="agy:agencyId" label-id="agy_agencyCommonModel.type.agy_agencyDocument.title">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<!– agy:agencyBusinessUnit –>
<field id="agy:agencyBusinessUnit" label-id="agy_agencyCommonModel.property.agy_agencyId.title">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
<!– agy:agencyDivision –>
<field id="agy:agencyDivision" label-id="agy_agencyCommonModel.property.agy_agencyDivision.title">
<control template="/org/alfresco/components/form/controls/textfield.ftl" />
</field>
</appearance>
</forms>
</config>
02-06-2013 11:14 AM
<config evaluator="model-type" condition="my:type">
<forms>
<form id="search">
….
….
</form>
</forms>
</config>
02-07-2013 09:40 PM
02-08-2013 08:03 AM
<config evaluator="model-type" condition="agy_agencyDocument">
to this
<config evaluator="model-type" condition="agy:agencyDocument">
02-08-2013 09:37 PM
02-09-2013 06:57 AM
sys:base
as your type and providing your aspect properties as filter fields. Unfortunately, if the user does not enter anything in at least on of the filter fields, you will find all nodes that match your search string, as there is no way to tell the search to search for ASPECT:"prefix:localName"
via the form configuration. The only way to change that is by forcing a hidden property value into your nodes and search form that you know is the same for all nodes that have the aspect - that way, there will be an implicit filter on a property only your aspect provides and the search can only find nodes that have it applied.myPrefix:wikiArticle
to any content created in a site ./cm:wiki containermyPrefix:isWikiArticle
with default value set to truecm:content
that includes a hidden field myPrefix:isWikiArticle
with predefined value of true02-09-2013 09:12 AM
<aspect name="agy:agencyDocument">
<parent>cm:titled</parent>
…
<aspect name="oag:matter">
<parent>agy:agencyDocument</parent>
02-09-2013 09:17 AM
<config>
<simple-search-additional-attributes>
<qname>{http://www.texasattorneygeneral.gov/model/common/1.0}agencyId</qname>
…
02-09-2013 10:55 AM
evaluator="model-type" condition="sys:base"
on the search form, how do I have a search page for for each my 5 aspects? Like:02-10-2013 09:47 AM
nodeService.hasAspect("cm:titled")
on a document with agy:agencyDocument
, you might find yourself surprised it returns "false", since this aspect has not been applied directly. If you want your agency documents to always also have the cm:titled
aspect, you could use it as a default aspect of your custom aspect.ASPECT:"agy:agencyDocument"
in the quick search / keywords input.evaluator="model-type" condition="sys:base"
.sthi:wikiContent
and doesn't appear anywhere in the configuration at all directly).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.