We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4310
    • 2,310 Posts
    I get the JS error quite often.
    I’ve more or less stopped using the MODx extension because of it.
      • 23276
      • 85 Posts
      Quote from: TheDesigner at Oct 01, 2008, 09:58 AM

      Sometimes the General Template Variable menu will generate a javascript error with no diagnostics. It seems to happen in the body of the page. Has anyone else seen this?

      I confirmed the issue when I try to insert [*content*] from insert bar.

      1.backup insertbar.xml.
      2.find the following line in insertbar.xml.
                    <button id="DW_MODx_TV_content" MMString:name="insertbar/modx/tv/content" image="MODx/tv/tv.png" file="MODx/tv/.htm" />

      3.change the line as the following.
                    <button id="DW_MODx_TV_content" MMString:name="insertbar/modx/tv/content" image="MODx/tv/tv.png" file="MODx/tv/content.htm" />

      4.run your Dreamweaver.

      Then it will work well.



      if you use Windows, insertbar.xml is placed in the following:
      <hdd name>:\Documents and Settings\<username>\Application Data\Macromedia\Dreamweaver <version>\Configuration\Objects\

      or

      <hdd name>:\Documents and Settings\<username>\Application Data\Adobe\Dreamweaver <version>\Configuration\Objects\



      if you use Mac, insertbar.xml is placed in the following:
      <hdd name>:Users/<username>/Library/Application Support/Macromedia/Dreamweaver <version>/Configuration/

      or

      <hdd name>:Users/<username>/Library/Application Support/Adobe/Dreamweaver <version>/Configuration/


      Thanks for your feedback! smiley
        • 4310
        • 2,310 Posts
        Thanks Phize - that fixed it grin
        Definitely helps speed up the conversion of html templates.
        Many thanks.
        David
          • 6563
          • 8 Posts
          Good job and thanx!
            See ya, Darken
            • 3749
            • 24,544 Posts
            Nusphere’s PhpEd makes it easy to create custom MODx code templates and give them keyboard shortcuts (I’m sure PhpEclipse does as well).  So Ctrl-j ! can instantly print out
            [[!snippet? &v=`|`!]]  
            and leave the cursor where the | is. Of course it already has the PHP code shortcuts built in so ctrl-j ifel gives you this:

            if (|) {
            
            }
            else {
            
            }


            Like other editors, PhpEd also autocompletes function and variable names and gives you a drop-down list of the options based on the context. You can also right-click on a function and, if you have your whole MODx site in the project, it will take you to the declaration of that function. There’s also a database viewer/editor on a flyout from the right margin. I used to love DreamWeaver, but I could never go back.
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting