Could be nice having a numerical conversion. Custom filter can already do it, but it involves allowing PHP input format for all users.
Could be nice having a numerical conversion. Custom filter can already do it, but it involves allowing PHP input format for all users.
Comments
Comment #1
cwgordon7 commentedTo clarify, what you mean is being able to, say, perform math on numbers?
Comment #2
amitaibumy 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 :)
Comment #3
cwgordon7 commentedSounds 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.
Comment #4
cwgordon7 commented(so this does not involve allowing php input format for all users, but does require writing php code yourself)
Comment #5
amitaibuJust 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.