MySource Matrix Developer

Main Content

Remote Content Page Tag Filtering

Summary

This document proposed a new filtering option for the Remote Content Page. New filtering option will allow remote content to filter or replace specific tags from the remote content.

Status: Complete
Key: draft -> approved proposal -> scheduled -> in development -> in testing -> complete -> released

Estimated Start Date: Mon, 27 Mar 2006
Estimated End Date: Tue, 28 Mar 2006

Planned Release Version: 3.10.0 RC1

Problem Definition

Currently, Remote Content retrieves all html tags between specified start and stop tags. It is possible to strip out images from the remote content by enabling the "Strip Images" setting from the Remote Content Page's details screen. However, its not possible to remove or replace specific tags from the retrived content. A new content filtering setting is needed to specify which tags will be stripped or replaced from the remote content before it is displayed.

Technical Specification

Remote Content Page Changes

The new tag filtering settings will need to have three textboxes where user can specify the tag they want to replace, and replacements which will be made up of two textboxes 'start tag' and 'end tag'. Matrix keywords will be available for the tag replacements. User will also have the option to remove the content from the specified tag. The new tag replacement setting should be added to the Details screen under "Content Filtering" section.

If the user specifies div as one of the filters and no replacements defined then the Remote Content page should remove all the <div> and </div> tags from the content. However, anything between <div> and </div> should not be removed. This will allow users to remove any formating (i.e font) from the remote content.

Example tag replacements:

Original Content: ...<title>Example Page</title>...
Tag to replace  : title
Start Tag       : <title>My Site: 
End Tag         : </title>
Remove Contents : No
Result          : ...<title>My Site: Example Page</title>...
Original Content: ...<title>Example Page</title>...
Tag to replace  : title
Start Tag       : <title>My Site 
End Tag         :  is better!</title>
Remove Contents : Yes
Result          : ...<title>My Site is better!</title>...
Original Content: ...<title>Example Page</title>...
Tag to replace  : title
Start Tag       :  
End Tag         : 
Remove Contents : Yes
Result          : .......