开发者

MODX: Snippet strips and hangs string when parsing the vars

i have a snippet call like this:

[!mysnippet?&content=`[*content*]` !]

What happen is that, if i send some html like this:

[!mysnippet?&content=`<p color='red'>Yea开发者_如何学编程h</p>` !]

it will return this:

<p colo

the [test only] snippet code (mysnippet) is:

<?php
return $content;
?>

Why is this happening? My actual snippet is converting html to pdf, so i really need this.

Thank you all ;D

EDIT: I'm using Modx Evo 1.0.2


MODx Evolution has a limitation whereby you can't use "=" (equals signs) in Snippet parameter values. Best solution is to place the content in a chunk or TV and then call it. This is not an issue in MODx Revolution.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜