need custom 'include' behavior

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

  1. #1

    Default need custom 'include' behavior

    I have a copy of "Developing Extensions for Macromedia? Dreamweaver? 8" but
    can't seem to figure out how to do what I want. Please point me in the
    direction of anything that would help.

    I'm working with a CMS that provides the ability to upload html pages with
    it's own proprietary include functionality. The behavior of the include tags
    is as follows:

    ***tag value***

    where the tag value will either be a filename, such as "header.shtml" or a CMS
    code, such as "NAVBAR" Tags can appear anywhere in the file between the html
    tags, but can not nest include constructs.

    I want to build an extension that will enable the designtime preview to
    resolve these tags and render the resulting code. Resolving the tags would be
    inserting the contents of a filename into page, or, in the case of a CMS code,
    inserting some mocked up data that I've stored in a file that I'd configure the
    extension to know about.

    Can anyone help me get started?

    Thanks

    Pauli

    marfarma Guest

  2. Similar Questions and Discussions

    1. Adding Validation to custom Server Behavior
      Does anyone know how to add validation when building a custom Server Behavior ? my extensions keep getting rejected and I cant seem to figure out...
    2. i need add options in a custom server behavior
      Hello everybody the custom server behaviors are too cool, but i need help with this issue: i'm making a server behavior with two parameters....
    3. custom cursor - drill behavior
      ReBump... interesting. nobody knows it, or maybe I am wishing something imposible :(
    4. Custom Scrollbar Behavior
      I created all the necessary components required by Custom Scrollbar behaviour in Director 8.5. Everything works fine, however, everytime I save or...
    5. include and imagejpg() weird behavior - maybe header?
      I have a function that resizes images. If I put it in the same php file that calles it it workes fine. Gives a nice thumbnail or whatever size I...
  3. #2

    Default Re: need custom 'include' behavior

    Pauli,

    Starting with DW MX, there is a mechanism to extend the SSI
    functionality for Server Models. In the Configuration/ServerBehaviors/
    folder, take a look at these files:

    - include_comment.edml
    - include_directive.edml
    - include_lock.edml
    - include_tag.edml

    The key is the "_includeUrl" suffix on the end of the paramName. This is
    documented somewhere in the Extending DW book.

    I recommend creating a new .edml file for your new search patterns (as
    opposed to editing one of the existing files) to make your extension
    portable.

    Warning: be careful with the number search patterns that you add, and
    the efficiency of these patterns as this will have an impact on your
    system performance. For example, avoid ".*" if at all possible -- use
    ".*?" (minimum search) instead.

    Hope this helps,
    Randy

    > I have a copy of "Developing Extensions for Macromedia? Dreamweaver? 8" but
    > can't seem to figure out how to do what I want. Please point me in the
    > direction of anything that would help.
    >
    > I'm working with a CMS that provides the ability to upload html pages with
    > it's own proprietary include functionality. The behavior of the include tags
    > is as follows:
    >
    > ***tag value***
    >
    > where the tag value will either be a filename, such as "header.shtml" or a CMS
    > code, such as "NAVBAR" Tags can appear anywhere in the file between the html
    > tags, but can not nest include constructs.
    >
    > I want to build an extension that will enable the designtime preview to
    > resolve these tags and render the resulting code. Resolving the tags would be
    > inserting the contents of a filename into page, or, in the case of a CMS code,
    > inserting some mocked up data that I've stored in a file that I'd configure the
    > extension to know about.
    Randy Edmunds 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