Hello.
I coded snippet WriteWord wich make image from text line. Text string wich snippet used to create image is one of the snippet parameters. And i found that its not possible to pass multiline text.
If i use snippet call like this [[Writeword?&text=`[*content*]` ... and content have linebreaks, snippet is not working.
Is it simple way to use linebreaks in this situation?
I think about using PHx to replace all newline symbols in this parameter with special mark and then replace this mark back on newlines inside snippet. But may be there is more simple way?
Thanks!
DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. |
DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.
Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.
[PLUGIN] DirectResize - as Maxigallery but for single images ::
Download :: [url=
http://modxcms.com/forums/index.php/topic,21490]
-
MODX Staff
- 10,725 Posts
For now, the parser does not like line breaks in the tags. Get the content in the snippet rather than feeding it via parameters and you’ll have better luck for now. Their are some hacks in the forums (I’ll have to do some searching) that can modify the current parser for this, but this capability will be possible in the 0.9.7 release.
Thanks for your advise, guys!
Modification of core functions is an evil so i’ll better wait for 0.9.7
DirectResize 0.9 beta. PHPThumb, sets of configurations, configuration, binded to specific path. No backward compatibility. |
DirectResize 0.9. PHPThumb, наборы параметров, параметры, привязанные к определенным путям. Без обратной совместимости.
Unfortunately, DirectResize project is closed. If you want to continue development, PM me for access to project page on Google Code. К сожалению, проект DirectResize закрыт. Если вы желаете продолжить разработки, обращайтесь через ПМ для получения доступа к репозиторию на Google Code.
[PLUGIN] DirectResize - as Maxigallery but for single images ::
Download :: [url=
http://modxcms.com/forums/index.php/topic,21490]