Hey Guys,
I am brand new to MODx - Not to web design world or PHP / Java / Css / Etc. though.
And I must say I am very interested in this CMS. I think that I can be up to speed in the next 5-6 hours, and republish a site, by the end of the weekend. Which is absolutely amazing to me. It seems to offer a lot of solutions where CMS fall short in my opinion.
But enough on that, I have a couple of questions about PHx - And perhaps a few more examples / demos would help if any one can point me in the correct direction.
But for now on the Wiki I plugged in the :love
But when I call it [+phx:love+]
I get this result - &_PHX_INTERNAL_& because I love MODx
Debug I get =
51 [13:33:41] MODx / PHx placeholder variable: phx
52 [13:33:41] |--- Input = ’&_PHX_INTERNAL_&’
53 [13:33:41] |--- Modifier = ’love’
54 [13:33:41] |--- DB -> Custom Modifier
55 [13:33:41] |--- Output = ’&_PHX_INTERNAL_& because I love MODx’
But if I take out phx call, then I get nothing.
So can anyone help me out here.
-
MODX Staff
- 2,502 Posts
Are you trying to learn how to create a Custom Modifier? If so look at the other user contributed custom modifiers here:
http://wiki.modxcms.com/index.php/PHx/CustomModifiers
If you have more questions, please let us know.
Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup
magician.
Blog ✦
Twitter ✦
LinkedIn ✦
GitHub
1) Check double php tag endings in custom modifier?
2) If no PHx works
Try changing the plugin to use this line instead:
include_once $modx->config['base_path'] . "assets/plugins/phx/phx.parser.class.inc.php";
And make sure that folder is uploaded correct
I’m not sure. But it looks correct. >:(
Cool that works. Thanks! I get it now.
I was using [++] instead of [**]
So for whatever reason [**] works fine for me.