Install Directory vs. User Directories

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

  1. #1

    Default Install Directory vs. User Directories

    So I'm trying to package an extension here and all of the documentation says to
    use the $dreamweaver string in the MXI file to let Extension Manager know where
    to copy your files. But won't this copy over the default config files? I just
    want it to copy over (or append?) to the user config files in the Application
    Data directory.

    When I try to install I get a bunch of warnings saying that files are about to
    be overwritten, am I sure I want to continue. This shouldn't happen, should
    it? Then when it should be done it just says "Internal error (please contact
    technical support). The extension will not be installed."

    To created the extension originally I went in and edited my user config files,
    so everything seems to be working. Just when I try to install it as a regular
    extension do I have problems.

    I added two new document types and some code coloring for them. Here are the
    files I'm trying to include in the package (please tell me if I'm going about
    this the wrong way):

    /Configuration/CodeColoring/CodeColoring.xml
    /Configuration/CodeColoring/Colors.xml
    /Configuration/CodeColoring/Ruby.xml (my custom file for keywords and crap)
    /Configuration/DocumentTypes/NewDocuments/default_ruby.rb
    /Configuration/DocumentTypes/NewDocuments/default_rails.rhtml
    /Configuration/Strings/DocumentTypes.xml

    And then I've also got changes to the Extensions.txt, FTPExtensionMap.txt and
    /Configuration/DocumentTypes/MMDocumentTypes.xml but all of those are
    documented in the MXI file as instructed (so I assume that goes ahead and
    appends those changes automatically, no need to include those files).

    And if it helps any, attached is the contents of my MXI file. Thanks for any
    help!

    <macromedia-extension name="Ruby and Rails Support" version="1.0.0"
    requires-restart="true" type="suite">
    <author name="Rob Cameron" />
    <products>
    <product name="Dreamweaver" version="7" primary="true" />
    </products>
    <description>
    <![CDATA[This extension adds Ruby and Rails file support and code
    coloring.]]>
    </description>
    <ui-access>
    <![CDATA[When creating a new file, you will see that Ruby and Rails are two
    new
    filetypes available in the Basic Page grouping. To access color coding, go
    to Edit >
    Preferences > Code Coloring and select Ruby or Rails from the list.]]>
    </ui-access>
    <files>
    <file source="CodeColoring/CodeColoring.xml"
    destination="$dreamweaver/Configuration/CodeColoring/CodeColoring.xml" />
    <file source="CodeColoring/Colors.xml"
    destination="$dreamweaver/Configuration/CodeColoring/Colors.xml" />
    <file source="CodeColoring/Ruby.xml"
    destination="$dreamweaver/Configuration/CodeColoring/Ruby.xml" />
    <file source="DocumentTypes/NewDocuments/default_rails.rhtml"
    destination="$dreamweaver/Configuration/DocumentTypes/NewDocuments/default_rails
    ..rhtml" />
    <file source="DocumentTypes/NewDocuments/default_ruby.rb"
    destination="$dreamweaver/Configuration/DocumentTypes/NewDocuments/default_ruby.
    rhtml" />
    <file source="Strings/DocumentTypes.xml"
    destination="$dreamweaver/Configuration/Strings/DocumentTypes.xml" />
    </files>
    <configuration-changes>
    <documenttype-changes>
    <documenttype-insert>
    <documenttype id="Ruby" internaltype="Dynamic" winfileextension="rb"
    macfileextension="rb" file="default_ruby.rb" writebyteordermark="false">
    <TITLE>
    <MMString:loadString id="mmdocumenttypes_74" />
    </TITLE>
    <description>
    <MMString:loadString id="mmdocumenttypes_75" />
    </description>
    <dtdcontext>html</dtdcontext>
    </documenttype>
    <documenttype id="Rails" internaltype="Dynamic" winfileextension="rhtml"
    macfileextension="rhtml" file="default_rails.rhtml" writebyteordermark="false">
    <TITLE>
    <MMString:loadString id="mmdocumenttypes_76" />
    </TITLE>
    <description>
    <MMString:loadString id="mmdocumenttypes_77" />
    </description>
    <dtdcontext>html</dtdcontext>
    </documenttype>
    </documenttype-insert>
    </documenttype-changes>
    <extension-changes>
    <extension-insert extension="RB" description="Ruby Files">
    <extension-insert extension="RHTML" description="Rails Files">
    </extension-insert>
    <ftp-extension-map-changes>
    <ftp-extension-insert extension="RB" mac-creator="????"
    mac-file-type="????" type="ASCII" />
    <ftp-extension-insert extension="RHTML" mac-creator="????"
    mac-file-type="????" type="ASCII" />
    </ftp-extension-map-changes>
    </configuration-changes>
    </macromedia-extension>

    Cannikinn Guest

  2. Similar Questions and Discussions

    1. #40397 [NEW]: php.ini In Local User Directories
      From: card at genesisnetsolutions dot com Operating system: CentOS PHP version: 5.2.0 PHP Bug Type: *Configuration Issues...
    2. Install pgsql directory
      On Wednesday 08 Dec 2004 2:42 am, Jimmie H. Apsey wrote: This might help you.. http://wiki.ael.be/index.php/PostgresQL101 Shridhar ...
    3. Using virtual directories for common directories (scripts, images, styles, etc.)
      Hi, (sorry for the crosspost, I wasn't sure which was the best place to put this). I was just thinking about something and wondered if any of...
    4. install 2 instance in same directory?
      Can I install 2 SQL Server 2000 instances in same directory?
    5. Install via Microsoft Active Directory Policy
      Help! I am trying to get DW MX installed on several desktops using Group Policies in Active Directory. I have a valid serial # for each user, but...
  3. #2

    Default Re: Install Directory vs. User Directories

    You are correct that your extension should never overwrite any existing
    files. Extensions that do this will not get "Macromedia Approval".
    > /Configuration/CodeColoring/CodeColoring.xml
    > /Configuration/CodeColoring/Colors.xml
    > /Configuration/CodeColoring/Ruby.xml (my custom file for keywords and crap)
    There is simply no way to make changes to the existing Code COloring
    files. You need to put all of your changes in new .xml files as you did
    with Ruby.xml. Place all of your coloring for Ruby in a file called
    something like "RubyColors.xml".

    > And then I've also got changes to the Extensions.txt, FTPExtensionMap.txt and
    > /Configuration/DocumentTypes/MMDocumentTypes.xml but all of those are
    > documented in the MXI file as instructed (so I assume that goes ahead and
    > appends those changes automatically, no need to include those files).
    DW processes all .xml file in the DocumentTypes folder, so you can also
    define your new documenttype(s) in a separate .xml file.

    Hope this helps,
    Randy

    Randy Edmunds Guest

  4. #3

    Default Re: Install Directory vs. User Directories forExtensions

    Hi Randy,

    One issue remains ... I want HTML, JavaScript and CSS coloring to apply to my
    new Ruby/Rails extensions (so that when I open an .rhtml file, all the regular
    HTML will also be color coded along with the Rails code). The only way I've
    found to do this is add my new doctypes to the HTML, Javascript and CSS
    declarations in the CodeColoring.xml file:

    Code:
    <scheme name="HTML" id="HTML"
    doctypes="ASP.NET_VB,ASP.NET_CSharp,ASP-JS,ASP-VB,ColdFusion,CFC,HTML,JSP,PHP_My
    SQL,LibraryItem,WML,XSLT,Ruby,Rails" priority="50">
    How would I accomplish the same thing using only my Ruby.xml file? Do I
    re-declare the HTML line there and add on my new docytypes?

    Cannikinn Guest

  5. #4

    Default Re: Install Directory vs. User Directories for Extensions

    Yes, updating the CodeColoring.xml file is definitely the most efficient
    way to go.

    Here are some possible solutions that I see:

    1. You could provide instructions for user to manually update
    CodeColoring.xml.

    2. Write a program that makes the edit. Since this needs to be done
    while DW is shutdown, the user would still probably need to manually
    invoke it.

    3. Duplicate the HTML, CSS, and Javascript schemes in your .xml as you
    suggest. You can re-use the ids so that when the color gets changed for
    the original scheme, the duplicate schemes will also see the change.

    Hope this helps,
    Randy

    > One issue remains ... I want HTML, JavaScript and CSS coloring to apply to my
    > new Ruby/Rails extensions (so that when I open an .rhtml file, all the regular
    > HTML will also be color coded along with the Rails code). The only way I've
    > found to do this is add my new doctypes to the HTML, Javascript and CSS
    > declarations in the CodeColoring.xml file:
    >
    >
    Code:
    >  <scheme name="HTML" id="HTML"
    > doctypes="ASP.NET_VB,ASP.NET_CSharp,ASP-JS,ASP-VB,ColdFusion,CFC,HTML,JSP,PHP_My
    > SQL,LibraryItem,WML,XSLT,Ruby,Rails" priority="50">
    >
    >
    > How would I accomplish the same thing using only my Ruby.xml file? Do I
    > re-declare the HTML line there and add on my new docytypes?

    Randy Edmunds Guest

  6. #5

    Default Re: Install Directory vs. User Directories forExtensions

    Just wondering how the reuby extension is going???

    Nes
    nesbert5 Guest

  7. #6

    Default Re: Install Directory vs. User Directories forExtensions

    I've got a semi version 1.0 done! It adds the .rb and .rhtml extensions and
    has code coloring for both. There are some strange behaviors ... some HTML
    coloring is included in the .rhtml files, but some isn't. No idea why yet.
    I'll send you a copy if you'd like!

    Coming soon (hopefully) will a reference for both Ruby and Rails, as well as
    Code Hints!

    Cannikinn Guest

  8. #7

    Default Re: Install Directory vs. User Directories forExtensions

    maxAndGusDad - I'd love to do some custom server behaviors for it, but I get
    the feeling that's going to involve custom DLLs and such, which is beyond my
    abilities at this point. For the immediate future I'd just be happy if it
    color coded and code hinted for me. :)

    Cannikinn Guest

  9. #8

    Default Re: Install Directory vs. User Directories forExtensions

    I've edited my DW files by following a I found at rubygarden
    ([url]http://rubygarden.org/ruby/ruby?action=browse&diff=1&id=DreamweaverMX[/url]) **Note
    to get proper HTML behavior in your .rhtml file make sure in Tag Library Editor
    while HTML tags is highlighted in User In: you have Ruby checked.

    Works pretty well... but no code hints =(.

    I would love to see/test what you've doen so far... can't wait to use the
    finished product.

    nesbert5 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