simple (first attempt) mxi

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default simple (first attempt) mxi

    ok guys

    decided to look into extension writing

    have hacked away at the config dir and files within to produce what im after.

    a simple button which launches the browser and directs to a url. This bit is
    fine and have it working so nor its time to create the mxi file in order to
    package it but i cant seem to get this working

    As you can see from my included mxi code below i have a tag called <button as
    its this i want to write to the toolbars.xml

    please can you guide me in the correct way

    im getting "cannot write to toolbars.xml" error when packaging the mxi


    ////////////////////////////////////////////////////////////////////////////////
    //////////////////////////////////////
    /// toolbar.xml addition (i need this inserting into the toolbars.xml)

    ////////////////////////////////////////////////////////////////////////////////
    //////////////////////////////////////
    <button id="DJ" image="Toolbars/images/dreamweaverclub.gif" tooltip="Get Some
    Help" domRequired="FALSE"
    command="dreamweaver.browseDocument('http://www.dreamweaverclub.com/forum/')"/>


    ////////////////////////////////////////////////////////////////////////////////
    //////////////////////////////////////
    /// dwc.mxi
    ////////////////////////////////////////////////////////////////////////////////
    /////////////////

    ////////////////////////////////////////////////////////////////////////////////
    //////////////////////////////////////

    <?xml version="1.0" encoding="utf-8"?>

    <macromedia-extension name="DWC Button" version="1.0.0"
    requires-restart="true" type="button">

    <author name="DJ" />
    <products>
    <product name="Dreamweaver" version="6" primary="true" /></products>
    <description>
    <![CDATA[This extension installs a button which opens your browser and directs
    you to DWC]]>
    </description>
    <ui-access><![CDATA[Click the button > click the button.]]></ui-access>
    <license-agreement>
    <![CDATA[SAMPLE THIRD PARTY LICENSE TEXT:<br>blah blah blah]]>
    </license-agreement>
    <files>
    <file source="dreamweaverclub.gif"
    destination="$dreamweaver/configuration/Toolbars/images/" />
    </files>
    <configuration-changes>
    <toolbar-changes>
    <toolbar-insert>
    <toolbar-item-insert insertAfter="DW_Redo" toolbar="Standard_Toolbar">
    <button id="DJ" image="Toolbars/images/dreamweaverclub.gif" tooltip="Get Some
    Help" domRequired="FALSE"
    command="dreamweaver.browseDocument('http://www.dreamweaverclub.com/forum/')"/>
    </toolbar-item-insert>
    </toolbar-insert>
    </toolbar-changes>
    </configuration-changes>
    </macromedia-extension>

    AXEmonster Guest

  2. Similar Questions and Discussions

    1. My First Flash Attempt
      I have just designed my first piece of flash, a small advertisment for my site http://www.jimwebf1.co.uk 's fantasy F1 game. You can see this on...
    2. 4th attempt: UDP Socket Bug
      First make sure that the code works and that it is not some other problem, thus run the code in a normal windows app. Then make sure your...
    3. 3rd attempt: UDP Socket Bug
      Using udp sockets inside a class called by ASP.NET By impersonating you can use a TCP socket from a external class and call it from a ASP.NET...
    4. 2nd attempt: UDP Socket Bug
      This could have been fixed but I'm pretty sure I recall this sometime ago as an unresolved bug. Can you get this to work from a standard console...
    5. My VERY FIRST artistic attempt... link
      DISCLAIMER: any BASHING (substitute any synonym in here) of the given image will only be DEstructive. This is my absolutely FIRST artistic attempt...
  3. #2

    Default Re: simple (first attempt) mxi

    sorted this

    just removed the following node

    <toolbar-insert>

    AXEmonster Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139