Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
<txp:css /> issue
Is there a reason why the following does not work? (context is an individual article page, a custom field named ‘CSS’ exist and is filled)
<txp:css format="link" name="<txp:custom_field name='CSS' />" />
I would expect the name
attribute to filled with the value of the custom field at parse time. The actual output is:
http://example.site/css.php?n=%3Ctxp%3Acustom_field+name%3D%27CSS%27+%2F%3E">
My workaround for now: <link rel="stylesheet" href="//example.site/css.php?n=<txp:custom_field name='CSS' />">
.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
Re: <txp:css /> issue
*cough* single quotes around the name
attribute?
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
Re: <txp:css /> issue
Oops… Indeed.
… silently crawls back into his corner …
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
Pages: 1