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?

1 Answer 1

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}
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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