As already mentioned, there is no such function in Typoscript, so the preferred method should use some function of the PHP script, as suggested in other answers.
However, there is a cheat , and that will be using MySQL. Of course, this solution is only if you absolutely cannot (for the reason that I really canβt think of it) write a piece of custom PHP. Take it more as an academic answer than a practical one.
temp.random = CONTENT temp.random { table = tt_content select { pidInList = 1 recursive = 99 max = 1 selectFields = SUBSTRING(MD5(RAND()) FROM 1 FOR 6) AS random_string } renderObj = TEXT renderObj { field = random_string case = upper } }
NOTES:
pidInList must point to an existing page.- The MySQL command is just an example, since a string will never contain the letters GZ. I am sure it is possible to come up with a better string generated by MySQL.
source share