It is good that you continue your work on this super plugin.
I just download plugin and first that i see - when im edit any of plugin, code of MM plugin is posted after textarea.
I found that text in plugin comments "not have <?php at the beginning or ?> " cause that strange behavior in my case.
MODx 0.9.6.1p2
// The file contains some example rules (which you can copy to the chunk - although the chunk should not have <?php at the beginning or ?> at the end $config_chunk = 'mm_rules';
Ah, even though they’re commented out, the <?php tags are probably throwing it. Does it work better if you take that comment out?
Yes, in plugin.txt.
// The file contains some example rules (which you can copy to the chunk - although the chunk should not have <?php at the beginning or ?> at the end $config_chunk = 'mm_rules';
And one question - what is an interesting idea about manipulations on TV editing page? Did we can add new TV types? I saw that all code is commented.
I have found a way of manipulating this with Javascript (not modifying the core code), but it is a long way from being working. If I can work it out fully it may be in a future release.
If not, is there another way to do this without modifying the core code?
Ah, even though they’re commented out, the <?php tags are probably throwing it. Does it work better if you take that comment out?
Thanks, glad you find it useful. To me, making the Manager just as flexible as the front-end is really important, particularly when you have clients of differing levels of technical ability using them. One of the appeals of Modx is that the manager is very straightforward; this makes it possible to make it more so.
Quote from: ncrossland at Jul 02, 2008, 10:43 AMAh, even though they’re commented out, the <?php tags are probably throwing it. Does it work better if you take that comment out?
Yes, it works as it must when i remove this tag.
I see that you have great plans on the future and i hope that this plugin will be important in 0.9.7 or may be manager of the new MODx will be more flexible.
But now it is one of the best application for MODx. Must have for any of completed site.
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND tvs.name IN ('blogTags')' at line 1 »
SQL: SELECT name FROM `babelaud_babela`.`modx_site_tmplvars` tvs LEFT JOIN `babelaud_babela`.`modx_site_tmplvar_templates` rel ON rel.tmplvarid = tvs.id WHERE 1=1 AND rel.templateid = AND tvs.name IN ('blogTags')
[Copy SQL to ClipBoard]
Parser timing
MySQL: 0.0011 s (4 Requests)
PHP: 1215408969.0572 s
Total: 1215408969.0583 shave you left the default example rules in the mm_rules.inc.php file?
not sure if you would consider it a bug, or what exactly is happening:
With the latest ManagerManager, If I create a chunk mm_rules for adding rules in the Manager, but then I leave that chunk blank, I get the following MODx parse error when trying to create a new document:
« MODx Parse Error » MODx encountered the following error while attempting to parse the requested resource: « Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND tvs.name IN ('blogTags')' at line 1 » SQL: SELECT name FROM `babelaud_babela`.`modx_site_tmplvars` tvs LEFT JOIN `babelaud_babela`.`modx_site_tmplvar_templates` rel ON rel.tmplvarid = tvs.id WHERE 1=1 AND rel.templateid = AND tvs.name IN ('blogTags') [Copy SQL to ClipBoard] Parser timing MySQL: 0.0011 s (4 Requests) PHP: 1215408969.0572 s Total: 1215408969.0583 s
adding some example text to the chunk prevents this parse error.
Quote from: towerofbabel at Jul 07, 2008, 12:57 AMhave you left the default example rules in the mm_rules.inc.php file?
not sure if you would consider it a bug, or what exactly is happening:
With the latest ManagerManager, If I create a chunk mm_rules for adding rules in the Manager, but then I leave that chunk blank, I get the following MODx parse error when trying to create a new document:
« MODx Parse Error » MODx encountered the following error while attempting to parse the requested resource: « Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND tvs.name IN ('blogTags')' at line 1 » SQL: SELECT name FROM `babelaud_babela`.`modx_site_tmplvars` tvs LEFT JOIN `babelaud_babela`.`modx_site_tmplvar_templates` rel ON rel.tmplvarid = tvs.id WHERE 1=1 AND rel.templateid = AND tvs.name IN ('blogTags') [Copy SQL to ClipBoard] Parser timing MySQL: 0.0011 s (4 Requests) PHP: 1215408969.0572 s Total: 1215408969.0583 s
adding some example text to the chunk prevents this parse error.
If the chunk is empty / missing, it will look in this file automatically.
This discussion is closed to further replies. Keep calm and carry on.