Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2012-02-06 15:47:09

Algaris
Member
From: England
Registered: 2006-01-27
Posts: 608

Re: using txp tags in article body

I double checked my code in the txp article and the poster attribute is surrounded with single quotes although it keeps getting rendered with double quotes.

The missing double quote typo was from retyping the code in the browser source to post here as Google wouldn’t let me copy and paste it.

I’ve disabled all the running plugins and refreshed the page and it still renders the code the same way.

Offline

#17 2012-02-06 16:06:01

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,500
Website GitHub

Re: using txp tags in article body

What happens if you do this:

==<txp:output_form form="video_stuff" />==

and farm it out to a Form? Past that I’m stumped. Anyone else?

Last edited by Bloke (2012-02-06 16:07:23)


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#18 2012-02-06 16:23:45

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,227
Website GitHub

Re: using txp tags in article body

or better still if you want it to be flexible, to an smd_macro … ?


TXP Builders – finely-crafted code, design and txp

Offline

#19 2012-02-06 16:25:42

Algaris
Member
From: England
Registered: 2006-01-27
Posts: 608

Re: using txp tags in article body

Thank you so much for your time Steff.

In the end I used the following code and everything now works perfectly:

==<video poster="<txp:site_url />images/31.jpg" width="358" height="269" controls preload>
  <source src="<txp:site_url />files/video.mp4"></source> 
  <source src="<txp:site_url />files/video.ogv"></source>
</video>==

I still have no idea why using <txp:image id="31" /> would force double quotes in the rendered code though.

—Edit—
jakob: oooo, intereasting.

Last edited by Algaris (2012-02-06 16:26:32)

Offline

Board footer

Powered by FluxBB