Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-02-04 08:22:15

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,395
Website

<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

#2 2017-02-04 08:54:13

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,794
Website GitHub

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

#3 2017-02-04 08:57:18

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,395
Website

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

Board footer

Powered by FluxBB