We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16732
    • 592 Posts
    Yes is working for me with this
                    case 'cacheable':
                       if ($this->useThisRule($roles, $templates)){
                            $new_value = ($new_value=='') ? '0' :  $new_value;
                            $checked = ( $new_value=='0' ) ? '' : 'checked';
                            $output .= '$("input[@name=cacheable]").val("'.(int)$new_value.'"); '."\n";
                            $output .= '$("input[@name=cacheablecheck]").attr("checked","'.$checked.'"); '."\n";
                        }
                    break;
    


    Attention : mm_defaut only works when ceating a new document
      • 23050
      • 1,842 Posts
      Fantastic !!! It’s working great with $this-> smiley smiley

      And the top of the top... It’s also working when I change the template while editing the doc. By default, every doc use template n°5, if I change it to n°9, cacheable box is unchecked.

      Thanks for your help Stefan and Laurent ! kiss kiss
        • 6726
        • 7,075 Posts
        And now I know how to make this work thanks Perrine grin
        Might take a shot at adding other things, now that we have some additionnal sample logic...
          .: COO - Commerce Guys - Community Driven Innovation :.


          MODx est l'outil id
          • 23050
          • 1,842 Posts
          Hi,

          When moving pub_date from Settings tab to General tab, selection of a date doesn’t work. I click a date in the calendar, but the date isn’t added to the field.

          Firebug show this error :

          obj_caller.txt_target has no properties
          [Break on this error] : obj_caller.gen_date(dt_datetime)


          in calendar.html li 87

          Anyone gets the same issue ?
            • 7455
            • 2,204 Posts
            I noticed some strange behavior when using IE IE7 only all the moved tv’s (moved them to a tab look good when I press the tab but when i move my mouse the fields are gone.
            In ff it works flawless.

            does anyone else have the same experience?

            I have it on 3 instalations on 3 different servers one running 0951 one 096 and 0961

            Dimmy
              follow me on twitter: @dimmy01
              • 22770
              • 285 Posts
              I just downloaded the most recent version of this and it’s taken me half an hour to realise that the version in the repository doesn’t have Rachael Black’s modification to avoid conflict with Mootools. Not sure how the repository versions get updated, but this would be a sensible update to add, otherwise people will keep hitting this problem.
                • 16732
                • 592 Posts
                Hi,

                I have the same problem as Perrine, when I moving pub_date to Genaral tab it’s impossible to pick a date.
                I tryed to see what was the difference in the 2 cases but I don’t see anything.

                :’(
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  I haven’t looked at this, but I suspect that it has to do with different IDs for the various containers, and the javascript for the calender app is looking for the original container name.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 28451
                    • 46 Posts
                    Hi,

                    I’m trying to install this, but I get this error:

                    ManagerManager - OnPluginFormRender
                    An error occurred while loading. Please see the event log for more information.
                    
                    
                    Warning: Unknown(): open_basedir restriction in effect. File(/assets/plugins/managermanager/mm.inc.php) is not within the allowed path(s): (/home/vucdata:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/vucdata/public_html/manager/includes/document.parser.class.inc.php(742) : eval()'d code on line 54
                    
                    Warning: Unknown(/assets/plugins/managermanager/mm.inc.php): failed to open stream: Operation not permitted in /home/vucdata/public_html/manager/includes/document.parser.class.inc.php(742) : eval()'d code on line 54
                    
                    Warning: Unknown(): open_basedir restriction in effect. File(/assets/plugins/managermanager/mm.inc.php) is not within the allowed path(s): (/home/vucdata:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/vucdata/public_html/manager/includes/document.parser.class.inc.php(742) : eval()'d code on line 54
                    
                    Warning: Unknown(/assets/plugins/managermanager/mm.inc.php): failed to open stream: Operation not permitted in /home/vucdata/public_html/manager/includes/document.parser.class.inc.php(742) : eval()'d code on line 54
                    
                    Warning: (null)() [function.include]: Failed opening '/assets/plugins/managermanager/mm.inc.php' for inclusion (include_path='/home/vucdata/public_html/manager/includes/') in /home/vucdata/public_html/manager/includes/document.parser.class.inc.php(742) : eval()'d code on line 54
                    


                    I can’t figure this one out. Any advice? Thanks.
                      • 28436
                      • 242 Posts
                      Hey Steffen,

                      the path "/assets/plugins/managermanager/mm.inc.php" is wrong.

                      it should be "/home/vucdata/public_html/assets/plugins/managermanager/mm.inc.php"

                      ist this line at the end of the plugin?
                      $modx->config['rb_base_dir'].'plugins/managermanager/mm.inc.php';


                      And is it, please check the modx settings for your base_dir.

                      good luck
                      ciao, Stefan

                      This discussion is closed to further replies. Keep calm and carry on.