Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2018-10-12 17:13:32

richtestani
Plugin Author
Registered: 2009-11-08
Posts: 128

Re: Strainge problems with inline PHP not outputting TXT tags

etc wrote #314580:

I think raw php support was deprecated and removed in recent versions, you must use <txp:php />. As for global variables, as soon as they are declared so in each block, it should work:

<txp:php>...

I see.

So knowing some data comes from outside sources (imported classes and such)… how would you handle this? Build a public side plugin?

Offline

#14 2018-10-12 19:08:49

richtestani
Plugin Author
Registered: 2009-11-08
Posts: 128

Re: Strainge problems with inline PHP not outputting TXT tags

So after working out the plugin direction, it seems to work just as nicely.

<txp:rlt_colors article_id='<txp:article_id />' />

Fixes any issues I was dealing with prior, and moves my client code to a plugin.

Thank you for everyone’s input.
Rich

Offline

Board footer

Powered by FluxBB