AnsweredAssumed Answered

Configuring Advanced Search in Alfresco Share Based upon groups

Question asked by dsr471 on Oct 22, 2015
Latest reply on Apr 22, 2016 by douglascrp
I've one requirement…

I've two custom types called <blockcode> custom1:doc & custom2:doc </blockcode> And also I've two groups called <blockcode> group1 & group2.</blockcode>

I configured advanced search like below by adding below code in <blockcode>share-config-custom.xml </blockcode>

 <config evaluator="string-compare" condition="AdvancedSearch" replace="true">
<advanced-search>
    <!– Forms for the advanced search type list –>
    <forms>
        <form label="Custom DOC" description="Search for Custom Content">custom1:doc</form>
    </forms>
</advanced-search>
</config>
<config evaluator="model-type" condition="custom1:doc">
<forms>
    <!– Search form –>
    <form id="search">
        <field-visibility>
            <show id="cm:name" />
            <show id="custom1:cus_ID" />
        </field-visibility>
        <appearance>
            <field id="custom1:cus_ID">
                <control template="/org/alfresco/components/form/controls/textfield.ftl" />
            </field>
        </appearance>
    </form>
</forms>
</config> 

Its shows only the <blockcode>Custom1 Doc </blockcode> in Look for dropdown  for all users

Now my requirement is,

–>If user from <blockcode>group1</blockcode> login & navigates the advanced search page ,he should get only <blockcode>custom1:doc</blockcode> in Look for dropdown .

–>If user from <blockcode>group2</blockcode> login & navigates the advanced search page,he should get only <blockcode>custom2:doc </blockcode>in Look for dropdown .

How to achieve this.. Need Help guys.

Outcomes