0

Is there a documented (core) way to output the status as lowercase? What if the status is two words - is there a way to output the status with a hyphen?

i.e.:

Status name in Control Panel: In Progress

{status}

Would output:

in-progress

If there isn't a documented way, could you suggest a solution?

0

If you're unable to write your own PHP for it, you can use the add-on Streeng to wrap around {status} in your template with the slug parameter.

{exp:streeng slug="yes"}{status}{/exp:streeng}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.