Example Flexifilters

Last modified: February 4, 2008 - 01:57

Flexifilter, as of 1.1, provides for importing and exporting. When exporting a flexifilter, you can choose either a PHP version for use in modules, or serialized data for manual imports. To manually import flexifilters, such as those provided below, go to Administer -> Site Building -> Flexifilters, and click 'Import a flexifilter'. To use an export in your module, manually import the export as shown previously, and then export them in PHP format (or you can build them from scratch). Then see the Flexifilter API handbook page.

Please contribute your own flexifilters! If you have documentation status, please edit this page and add them in the format provided. If you don't have documentation status, create a book page with this node as the parent, and someone with documentation status will move them here for you.

Mediawiki Format

The Mediawiki format is a widely used format that is based on the Mediawiki software. It comes pre-installed with Flexifilter, however it is a good example of a flexifilter, and what Flexifilter's exports look like.

Flexifilter Cite

Flexifilter Cite is a sample module, serving as an example of how modules can utilize Flexifilter to distribute a filter. It allows for citations of other nodes to be added as components in flexifilters.

Link Formatting

Sometimes it's difficult to teach users how to use HTML, and instead, you can teach them a format like this: [link|title]. This export provides the flexifilter for this format.

Back to Top

When text is really long and unwieldy, you need a back to top link. Because Flexifilter has if statements, and text appending, we can create such a filter with Flexifilter. See this tutorial and this export.

Swear Filter

If you have a community that allows anyone to post to the front page, you may consider using a swear filter. Here is the export for a starting point- you can add your own swears, using the example (not a real swear!) to guide your filter.

Link Formatting filter cannot be imported

buzink - August 25, 2008 - 12:09

error: It appears that the serialized flexifilter you entered was improperly formed. Please check the source.

No OL LI support

David Latapie - June 27, 2009 - 22:04

Hi,

I am not a coder. I installed Flexifilters with Drupal 6. I copied some MediaWiki text of mine over Drupal, with ordered list (#). This is not supported. It is possible to make it work without delving into the code?

H5-H6 are not supported either. Same question: a way to fix it without coding?

Thanks

 
 

Drupal is a registered trademark of Dries Buytaert.