The DocType Flex Filter is one of the four filters which are supplied by WebCenter Sites. It is the short form for DOCUMENT TYPE.

The DocType filter is used to know the file-types (for example pdf, doc, etc..), mime-types (for example      application/pdf , etc..) of a particular document  Knowing the file types and mime types of a document are important in some situations. This filter could be used in such situations.

CREATION OF ATTRIBUTES:

First Things First. Create the following attributes, that would be utilized by the filter.

1. SampleDocument – (BLOB)

2. SampleDocumentFileType – (STRING)

3. SampleDocumentMimeType – (STRING)

CREATION OF FILTER:

1. Go to the Filter creation screen.

2. Enter the Name and Description of your choice.

3. In the FILTER drop down, select DocType, and click on GET ARGUMENTS button.

4. In the ARGUMENTS section, in the name drop-down, select each of the options, and enter the values as follows:

  • ATTRIBUTE TO HOLD DERIVED FILETYPE  –  SampleDocumentFileType
  • ATTRIBUTE TO HOLD DERIVED MIMETYPE – SampleDocumentMimeType
  • INPUT ATTRIBUTE NAME – SampleDocument

Finally the screen should look like following screen:

5. Save it.

6. Add the Filter to the content definition.

TESTING THE DOCTYPE FLEX FILTER:

1. Go to the asset creation screen, select the content definition for which you have added the filter.

2. Give a name.

3. Upload a document. Say a sample PDF document.

4. Save it. Click on Inspect. You will be able to see the uploaded document’s FILE TYPE & MIME TYPE. Check the below screen.

We haven’t added the SampleDocumentFileType & SampleDocumentMimeType in the content definition. But still they have appeared in the Asset Inspection Screen. Coz, these attributes are added by the DOCTYPE FLEX FILTER.

That’s it..

DocType Flex Filter perfectly works.

Advertisements
Comments
  1. Hi, good Post.

    In my Fatwire 7.6 in field Filter: not have option “DocType”, only “Document Transformation”.

    How I add in option DocType?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s