Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2021-01-05 16:58:20

etc
Developer
Registered: 2010-11-11
Posts: 4,076
Website

Re: Forms with strange behavior

It looks like CE can edit Forms anyway, so option 1 for me.

Offline

#12 2021-01-05 17:04:30

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,994
Website

Re: Forms with strange behavior

etc wrote #328053:

It looks like CE can edit Forms anyway, so option 1 for me.

That makes sense. If we trust them to edit forms that can have PHP in them, then there’s not much issue with allowing them to do that in articles too.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#13 2021-01-07 17:11:13

etc
Developer
Registered: 2010-11-11
Posts: 4,076
Website

Re: Forms with strange behavior

Please try PHP in forms called from a restricted article’s body in 4.8.5. Say

<!-- test form -->
<txp:php>echo 'form';</txp:php>
<txp:yield />

<!-- body -->
<txp::test>
<txp:php>echo 'body';</txp:php>
</txp::test>

should produce form body in an admin article, and form + php error in debug mode in freelancer articles.

Offline

Board footer

Powered by FluxBB