none
Como instalar o SharePoint Search Extension webpart? RRS feed

  • Pergunta

  • Pessoal como instalo o SharePoint Search Extension webpart?

    http://spsearchextension.codeplex.com/releases/view/63539

    Fiz o download da build 2007, e vem em formato ".wsp"

    Se vou em Web Part Gallery   e faço o upload dele, da um erro dizendo:

    The file you imported is not valid. Verify that the file is a Web Part description file (*.webpart or *.dwp) and that it contains well-formed XML.

    Eu acho que não estou colocando no lugar correto, alguem tem um tutorial de como instalar?


    Danilo

    quinta-feira, 31 de janeiro de 2013 09:53

Respostas

  • Danilo,

    Installation

    • Deploy the solution package "SearchExtension.wsp"
    • Activate the SearchExtension site-level feature - this will add the SearchExtension web part to the gallery
    • Add the SearchExtension web part to a page which has the "Advanced Search" web part present. The web-part will locate any instances of Advanced Search webpart on the page, and will extend the functionality.
    • Configure the SearchExtension webpart: see below

     

    Configuring the SearchExtension webpart

    The SearchExtension web part has one text box for its configuration XML.

    Here is an example of the configuraton XML used to create Categories and Sub-categories,

    <Configuration>
        <CustomPropertyRestrictionControls>
            <ControlMapping OptionText="Category" ControlToUse="Dropdownlist" 
              SourceList="Categories" SourceListParentWeb="TStester" 
              ItemDisplayTextColumn="Title" ItemValueColumn="Title"
              ChildrenOptionText="Sub Category" DependentOnOptionText="" DependentOnType="" 
              DuplicateAddedAlert="This property can not be selected more than once!" 
              ExpandedWidth="Auto" />
            <ControlMapping OptionText="Sub Category" ControlToUse="Dropdownlist" 
              SourceList="Categories" SourceListParentWeb="TStester" ItemDisplayTextColumn="Title" 
              ItemValueColumn="Title" ChildrenOptionText="" DependentOnOptionText="Category" 
              DependentOnType="ParentFolder" 
              DuplicateAddedAlert="This property can not be selected more than once!" 
              ExpandedWidth="Auto" />
            <ControlMapping OptionText="SharedInformation" ControlToUse="Dropdownlist">
                <Option text="Yes" value="1" />
                <Option text="No" value="0" />
            </ControlMapping>
        </CustomPropertyRestrictionControls>
        <SecurityTrimmings>
            <SecurityTrim OptionText="Query Status (Superceded)" 
              Groups="TSApprovers,TSAdministrators,TSApplicationAdministrators,TSSharedInformationApprovers" 
              TeamSiteUrl="/TStester" />
        </SecurityTrimmings>
    </Configuration>

    Fonte: http://spsearchextension.codeplex.com/documentation

    Para realizar o deploy

    SharePoint 2010 - http://technet.microsoft.com/en-us/library/cc262995%28v=office.14%29.aspx

    SharePoint 2007 - http://www.c-sharpcorner.com/uploadfile/Ravish001/how-to-deploy-or-retract-wsp-package-in-sharepoint-2007/


    Atenciosamente, Rafael Fausto


    quinta-feira, 31 de janeiro de 2013 16:29