How is this different from existing solutions to this problem?

dww - November 12, 2008 - 20:42
Project:Filter Macros
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

http://drupal.org/project/dme
http://drupal.org/project/flexifilter
...
http://drupal.org/project/Modules/category/63

#1

rhys - December 16, 2008 - 15:58
Status:active» postponed (maintainer needs more info)

This filtering system was developed as part of the MAPI and MMEDIA modules, but it was suggested that I make it slightly more generic, to be able to handle almost everything. It now does this.

It also allows for different contexts, so that modules can handle different the same tags, depending on the context in which they are located. This is very useful for doing teaser/body differences without changing the tag. This can also include doing filters within blocks differently depending on where the block is being displayed.

DME is currently only for d5, and flexifilter is almost completely different in method since it doesn't allow the ability to have "tags" with settings, as is generally required for tags such as [video:width="320";height="200].

As for the filtering modules, every single one of them could be written smaller, and more efficiently using this module.
It allows for single use tags, single balance tags (which don't allow other tags to be located within them), multi-balance tags (which allow other tags to be located within them, but not itself), and nested tags (allowing multi-balance with nested tags).

I've attached a bbcode style module to demonstate the possibility for how this can be used in a more efficient manner, as well as allowing theming control over the replacement tags themselves.

If you wish, I can provide speed indications for processing both small and large text. It is incredibly quick.

AttachmentSize
styles.tar_.gz 2.2 KB

#2

chasz - January 18, 2009 - 16:40

so how complex can u make it?

JS and CSS ??

since drupal wants everyone to stick to the mantra of processing on output, then the input text along with the tags get saved to DB and cant be accidentally damaged or mis-converted?

how is it different from the [rep] tag module?

#3

Flying Drupalist - January 26, 2009 - 04:47

Yes, how is it different from the custom filter module?

#4

rhys - January 26, 2009 - 17:44

@chasz: I'm not sure which tag module you are referring to, so I have no idea how to answer the question about difference. It would be possible to do something like without a huge amount of effort to incorporate handling CSS and possibly with some effort into JS (although I have done this for an unpublished module called editbar, since the textarea bars where insufficient for my purposes). As for the changes regarding the database I wasn't aware of the only processing on output mantra. I was simply trying to figure out a solution to the context problem, especially in regards to the display of media files.

@miraploy: If you mean the flexifilter module, I answered that above. If it is another, could you be more specific as to which one?

On the other hand, if enough people think this is an irrelevant module, I'll be more than happy to remove it, since I have to withdraw from drupal orientated production due to work concerns.

#5

Flying Drupalist - January 26, 2009 - 20:47

This is the custom filter module:
http://drupal.org/project/customfilter

No please don't remove it. More choices are always good, but documentation is crucial in situations like these.

#6

chasz - January 28, 2009 - 16:24

http://drupal.org/project/reptag

rep[lacement] tag

but i dont why you should remove this one, it might be a quick search and replace people might need.

If you dont have time, maybe you can invite another maintainer

#7

casey - February 2, 2009 - 09:48

I'll add some documentation soon.

#8

Mark Theunissen - July 13, 2009 - 11:27

There's also the inline module:

http://drupal.org/project/inline

 
 

Drupal is a registered trademark of Dries Buytaert.