We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Congratulations on release, everybody.

    By the way, we found AjaxSearch issue.

    http://modxcms.com/forums/index.php/topic,38298.0.html



    line 123
    $output = implode("<body>", $body);

    In this way.
    $output = implode("<body", $body);

    Will thank you in future!
      • 4225
      • 7 Posts
      Ok, here’s my first go at suggesting a usability improvement ... go easy on me - and know that I offer my suggestion as a big fan.

      I find that I always tend to use friendly URL’s with ’Use Friendly alias path’, ’Allow duplicate aliases’ and ’Automatically generate alias’ all turned ON.
      Of course, this has the great benefit of allowing two Resources to share the same name since they are in different containers and so have a different URL path.

      But when there are two resources with the same name in the same container, I think it should then behave as if allow duplicate aliases were turned off.

      So I find myself always having to hack /manager/processors/save_content.processor.php: approx line 69 with the following code:

              // auto assign alias
      if (!$alias && $automatic_alias) {
      $alias = strtolower(stripAlias(trim($pagetitle)));
      if(!$allow_duplicate_alias) {
      if ($modx->db->getValue("SELECT count(id) FROM " . $tbl_site_content . " WHERE id<>$id AND alias='$alias'") != 0) {
      $cnt = 1;
      $tempAlias = $alias;
      while ($modx->db->getValue("SELECT count(id) FROM " . $tbl_site_content . " WHERE id<>$id AND alias='$tempAlias'") != 0) {
      $tempAlias = $alias;
      $tempAlias .= $cnt;
      $cnt++;
      }
      $alias = $tempAlias;
      }
      }
      else {
      if ($modx->db->getValue("SELECT count(id) FROM " . $tbl_site_content . " WHERE id<>'$id' AND alias='$alias' AND parent=$parent") != 0) {
      $cnt = 1;
      $tempAlias = $alias;
      while ($modx->db->getValue("SELECT count(id) FROM " . $tbl_site_content . " WHERE id<>'$id' AND alias='$tempAlias' AND parent=$parent") != 0) {
      $tempAlias = $alias;
      $tempAlias .= $cnt;
      $cnt++;
      }
      $alias = $tempAlias;
      }
      }
      } 

      • bthuddo, please open a ticket in JIRA with that improvement. Thanks!
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
          • 4225
          • 7 Posts
          bthuddo, please open a ticket in JIRA with that improvement. Thanks!

          Have done - its MODX-1066
            • 16873
            • 40 Posts
            the question about "doc manager " in
            Parse error: parse error, expecting `'}'' in i:\modx-1.0.0\modx-1.0.0\assets\modules\docmanager\classes\dm_backend.class.php on line 77
            • Quote from: leepoooo at Aug 04, 2009, 01:56 AM

              the question about "doc manager " in
              Parse error: parse error, expecting `'}'' in i:\modx-1.0.0\modx-1.0.0\assets\modules\docmanager\classes\dm_backend.class.php on line 77


              /assets/modules/docmanager/classes/dm_backend.class.php

              line 77

              $sql = "UPDATE {$this->modx->getFullTableName('site_content')} set menuindex=" . $key . " WHERE id=" . $id;


              this way,
              $sql = "UPDATE $this->modx->getFullTableName('site_content') set menuindex=" . $key . " WHERE id=" . $id;


              or

              $sql = 'UPDATE ' . $this->modx->getFullTableName('site_content') . " set menuindex=" . $key . " WHERE id=" . $id;


              There is such a point elsewhere.

              http://wiki.modxcms.com/index.php/Creating_Snippets
              I think that it is necessary to write the whole according to this guideline.
                • 16873
                • 40 Posts
                thanks,YAMA,
                but the doc manager don’t run
                It’s only show me the labels such as "change templates","sort menu itesms"
                The content is null.
                  • 16183
                  • 1,390 Posts
                  Quote from: ganeshXL at Jul 31, 2009, 08:59 AM

                  Wow, this is awesome! Overall it feels a lot faster (only tested with FF 3.5.1 so far).

                  Yep...I found it very fast too. CMS critic concurs.

                  This new release is much quicker than previous, we did some quick testing and found the back end to be very fast and far more responsive than previous releases.

                  /k
                  • Quote from: leepoooo at Aug 04, 2009, 01:56 AM

                    the question about "doc manager " in
                    Parse error: parse error, expecting `'}'' in i:\modx-1.0.0\modx-1.0.0\assets\modules\docmanager\classes\dm_backend.class.php on line 77


                    Hello lepoooo and yama,

                    Please file a report in JIRA to track this issue so it does not get lost. Thank you.
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                    • $sql = "UPDATE {$this->modx->getFullTableName('site_content')} set menuindex=" . $key . " WHERE id=" . $id;

                      Oops, I think I slipped in a PHP5-only complex syntax expression into DocManager there - will get it fixed smiley
                        Garry Nutting
                        Senior Developer
                        MODX, LLC

                        Email: [email protected]
                        Twitter: @garryn
                        Web: modx.com