Is it possible to enter PHP code in the bodycopy of an asset and have it processed rather than displayed on the screen?
For a simple example, placing an if/else statement in the bodycopy of the search results page, so if there are multiple search results the search in search form is displayed, but if there is only 1 result, the search in search form is not displayed…
Thanks,
K.
In response to your question, PHP code is not permitted inside bodycopies for security reasons (ie. a malicious user being able to run arbitrary PHP script within a bodycopy), and would be escaped if you attempt to do so.
That's what I figured, but I thought I'd just double check.
Thanks for the speedy reply,
K.