Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-03-29 17:12:41

eritropel
Member
From: Hamburg
Registered: 2009-08-27
Posts: 26

[solved] nested Tags not parsed correct

Hi,

I try to call the default TXP “File”-Form. The ID is stored in an variable.
This is my code:

<txp:file_download form="files" id='<txp:variable name="MC_PDF_ID" />' />

with this txp-output:

<p><txp:file_download form="files" id='15&#8216; /&gt;</p>

the value of the var is 15, so the first two characters are correct.
But wether I try double quotes or single quotes: nothing will work.

Any help or ideas would be great.

Last edited by Gocom (2014-03-29 17:22:58)

Offline

#2 2014-03-29 17:22:27

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [solved] nested Tags not parsed correct

Articles bodies use Textile formatting. You must escape any Textile syntax conflicting instances, i.e. Textpattern’s tag markup, so that they aren’t parsed and formatted by it.

==<txp:file_download id='<txp:variable name="foobar" />' />==

For inline instances, or:

notextile. <txp:file_download id='<txp:variable name="foobar" />' />

To disallow Textile on a whole paragraph.

Offline

#3 2014-03-29 17:28:58

eritropel
Member
From: Hamburg
Registered: 2009-08-27
Posts: 26

Re: [solved] nested Tags not parsed correct

This was really fast help! It works. Thankyou!

Offline

Board footer

Powered by FluxBB