• Get the Flash Player to see the slideshow.
  • Categories

  • Authors

  • Great Quotes

    An eye for an eye makes the whole world blind. — Mahatma Gandhi

Get in touch...

To have a chat about
your CMS needs...

Call us 0207 193 2014
or
Email us on

Search within a DCT/TeamSite template

December 3rd, 2008 by Yusuf Ali

Providing you have TeamSite installed along with TeamSite Search (Both in working order), you can configure TeamSite Search to search within a Data Capture Template (DCT)/ TeamSite template for a specified field

e.g. Organisation ID

The file you need to configure to allow this to happen is FieldMapping.xml, located in search-home/etc

An example of the code you would input here can be found below;

<templates>
<!– * Organisation ID * –>
<template>
<templateType>contactinformation/building</templateType>
<templatingFields>
<templatingField>
<xpath>/main/organisation</xpath>
<fieldSpecification>
<fieldName>OrganisationsID</fieldName>
<fieldType>string</fieldType>
<fieldStorage>zone:contact_info_Organisations_ID</fieldStorage>
</fieldSpecification>
</templatingField>
</templatingFields>
</template>
</templates>

For more information on how you would code this, please contact us and we can expand further on this article

Tags:

Leave a Reply

You must be logged in to post a comment.