Who would benefit? |
Users of expression Engine |
What impact would it make? |
Broaden the range of functions |
Add the functions |
|
Why is it needed? |
Because they are not there already |
Can we have
1. SPLIT(text,character,index) which splits AAA-BBB-CCC and pulls out the indexed substring. Index can be negative such that -1 retrieves "CCC" from the RHS
2.GUID() to generate a unique identifier
3. DATE_NOW() to return the current date
4. DATA_ADD(date,"day",25) to allow date offsets
I think you can accomplish most of these using RegReplace. It is not as straight forward though and support for more functions would be great!
5. JSON("field1", "field2" , ....) to build a JSON Object of the field values (same as js stringify())
6. EMPTY("field1") to determine if a field is empty