about Insertbar showif attribute behaviour

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

  1. #1

    Default about Insertbar showif attribute behaviour

    Hi,

    I have created a new servermodel and I want to create some insertbar
    objects for that model only. I know that the insertbar.xml has a "showif"
    attribute. It requires me to enter a DW_enabler value. However all those
    value are for default dreamweaver servermodel only. I find that in menu.xml,
    the "showif" attribute require a script rather than the DW_enabler.
    Unfortunately insertbar.xml don't support inputing the script into the
    "showif" attribute. Is there a way to add a custom DW_enabler?
    or anyone have other solutions?

    Thanks

    Andy


    andy81 Guest

  2. Similar Questions and Discussions

    1. insertbar.xml problem
      In DW8, I add the following to the insertbar.xml: <category id="DW_Insertbar_My" MMString:name="My" folder="My"> <button id="My_feature"...
    2. Retrive data from attribute spaced attribute.
      Hi. I'm retrieving data from an excel sheet. But one of the attributes is name "Phone private". This is a problem when I want to write out the...
    3. insert a option in the PHP insertBar
      Hi, I always put my HTML file with the necessary code to try my extension, that I?m developing. So, I go in the Dw folders like: C:\Arquivos de...
    4. Insertbar buttons not active for .js/.vbs files
      Hi, I'm creating a custom Objects group, and all the buttons become inactive and unusable when a .js, .vbs or .inc file is currently edited. The...
    5. insertbar
      I'm trying to add a folder to my insertbar with this command < category id="DW_InsertBar_ MyObjects"folder=" My Objects"></ category> I use a...
  3. #2

    Default Re: about Insertbar showif attribute behaviour

    andy81 wrote:
    > I have created a new servermodel and I want to create some insertbar
    > objects for that model only. I know that the insertbar.xml has a "showif"
    > attribute. It requires me to enter a DW_enabler value. However all those
    > value are for default dreamweaver servermodel only. I find that in menu.xml,
    > the "showif" attribute require a script rather than the DW_enabler.
    > Unfortunately insertbar.xml don't support inputing the script into the
    > "showif" attribute. Is there a way to add a custom DW_enabler?
    > or anyone have other solutions?
    The documentation for the showif attribute lists out all the available
    values for the insert bar. Given that I'm thinking that there isn't an
    exposed way to modify those values, but not certain.

    I'm sure others would want that as well, please ask for it:
    [url]http://www.macromedia.com/support/email/wishform/[/url]


    I would be interested in hearing about your new server model, if you're
    able to talk about it. Offlist is fine.


    --
    Danilo Celic
    | Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
    | Team Macromedia for Dreamweaver : [url]http://macromedia.com/go/team/[/url]
    danilocelic *TMM* Guest

  4. #3

    Default Re: about Insertbar showif attribute behaviour

    Hi,
    I have create a JSF server model. At first I use the JSP server model
    and create a JSF document type. However the updatePageDirective function of
    JSP won't work on JSF document template. so I create a new model based on
    the JSP one. Also JSF page have different preview behaviour.

    There's an idea although the performance would not be good. We can
    backup and modify the insertbar.xml by file IO and call dw.reloadObjects()
    after the user open or create a document.
    Is there any API to change the insert bar object programmatically without
    need to reload from config file?

    Thx.
    Andy

    "danilocelic *TMM*" <danilo@shimmerphase.com> wrote in message
    news:d3ndb2$h3m$1@forums.macromedia.com...
    > andy81 wrote:
    >
    >> I have created a new servermodel and I want to create some insertbar
    >> objects for that model only. I know that the insertbar.xml has a "showif"
    >> attribute. It requires me to enter a DW_enabler value. However all those
    >> value are for default dreamweaver servermodel only. I find that in
    >> menu.xml, the "showif" attribute require a script rather than the
    >> DW_enabler. Unfortunately insertbar.xml don't support inputing the script
    >> into the "showif" attribute. Is there a way to add a custom DW_enabler?
    >> or anyone have other solutions?
    >
    > The documentation for the showif attribute lists out all the available
    > values for the insert bar. Given that I'm thinking that there isn't an
    > exposed way to modify those values, but not certain.
    >
    > I'm sure others would want that as well, please ask for it:
    > [url]http://www.macromedia.com/support/email/wishform/[/url]
    >
    >
    > I would be interested in hearing about your new server model, if you're
    > able to talk about it. Offlist is fine.
    >
    >
    > --
    > Danilo Celic
    > | Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
    > | Team Macromedia for Dreamweaver : [url]http://macromedia.com/go/team/[/url]

    andy81 Guest

  5. #4

    Default Re: about Insertbar showif attribute behaviour

    andy81 wrote:
    > I have create a JSF server model. At first I use the JSP server model
    > and create a JSF document type. However the updatePageDirective function of
    > JSP won't work on JSF document template. so I create a new model based on
    > the JSP one. Also JSF page have different preview behaviour.
    Interesting (academically, that is as I'm not into JSP or JSF coding).
    Based upon conversations with other developers, Server Models are the
    hardest of the extension types to get to work correctly. Good luck with
    this project.
    > There's an idea although the performance would not be good. We can
    > backup and modify the insertbar.xml by file IO and call dw.reloadObjects()
    > after the user open or create a document.
    You'd also have to check when the user switches documents, if they have
    a HTML file and a JSF documetn open at the same time. Seems to me to be
    over kill.
    > Is there any API to change the insert bar object programmatically without
    > need to reload from config file?
    All reloading of extensions pulls in from the configs from what I
    understand.

    One workaround that I would probably end up doing would be to do a check
    for you server model type within each of your objects and pop up an
    alert if it can't be used with the current document type.

    HTH

    --
    Danilo Celic
    | Extending Knowledge, Daily [url]http://CommunityMX.com/[/url]
    danilocelic *TMM* 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