Could be nice having a numerical conversion. Custom filter can already do it, but it involves allowing PHP input format for all users.

Comments

cwgordon7’s picture

To clarify, what you mean is being able to, say, perform math on numbers?

amitaibu’s picture

my use case would be:
User enters in his profile his measurments (Inch; CM).

This users adds a comment/ node and writes "1 cm".
Another user with INCH will see "2.54 INCH"

Info about user's measurments perferences should/could be taken from a profile field, or a field in content - probably easier said then done :)

cwgordon7’s picture

Status: Active » Closed (won't fix)

Sounds like you have a very specific use case. This belongs in its own module, not core flexifilter (so feel free to write it). Otherwise, this is achievable using php components. But there is no point in writing the code for this one specific case. Sorry.

cwgordon7’s picture

(so this does not involve allowing php input format for all users, but does require writing php code yourself)

amitaibu’s picture

Just to clarify (although I except your 'not in core' statement).
Conversion can be used in many cases: Yahoo weather (Celsius/ Fahrenheit); e-Commerce when you have to order fabrics (meter/yard); etc'

Maybe laying the base for easily adding conversions is actually what is needed. If not, I'll keep quite, and when times allow contrib back my specific use case.