Quote from: ncrossland at Jun 20, 2010, 01:08 PM
The previous version is still available to download:
http://modxcms.com/extras/download/555/555
Thank you
Argue for your limitations and they are yours!
I’ve reuploaded, and the link appears to be working now (didn’t need mod approval this time?).
There aren’t any changes of any significance; just updated the metadata to make it compatible with the new installer for those of us who like to have a custom build, and added a couple more default modifiers.
It would be nice to update the package more generally, I know there are a few performance tweaks on the forums which should be incorporated.
Author:
ManagerManager plugin - customise your ModX manager interface
Rckt - web development, Sheffield, UK
Hi,
Just noticed that Phx doesn’t support placeholders set by non-cached snippets on cached page. That occurs whenever Jot or Ditto uses their own placeholders to output info such as [+jot.html.comments+] and etc.
Thorough research of phx.parser.class.inc.php led me to lines:
preg_match_all(’~\[(\+|\*|\()([^:\+\[\]]+)([^\[\]]*?)(\1|\))\]~s’, $template, $matches);
if ($matches[0]) {
$template = str_replace($matches[0], ’’, $template);
$this->Log("Cleaning unsolved tags: \n" . implode("\n",$matches[2]) );
}
That part of function erases all unknown placeholders. So that phx is not be able to recognise placeholders until they are not set by snippets. On other hand snippets are also parsed by phx.
Solution is: DO NOT erase unknown placeholders as long as all of the snippets are not executed
How could number of mysql queries be more than number of tables in DB???
-
☆ A M B ☆
- 24,524 Posts
It has long been known that the PHx plugin will eat placeholders. There are a few workarounds; my favorite is to not use the PHx plugin at all; use snippets instead.
Solving this will make my day
Every template of Jot contains plenty of conditions used pHx.
I can’t imagine how to replace them with my own snippets - exausting work!
How could number of mysql queries be more than number of tables in DB???
Jot comes with built-in PHx. So if you don’t have separate PHx plugin installed, Jot will still work.
But all headache is in separate PHx since it simplifies my work with templates.
Anyway I’m stubborn

!
Just made some fixes in phx class and i’m taking delight in placing all Jot, AjaxSearch generated placeholders anywhere in my template!
I know it’s not perfect but....works!
More in attached file.
How could number of mysql queries be more than number of tables in DB???