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

  1. #1

    Default Custom Tag Feature

    All:

    I have ran into an issue that seems to need some extensibility.

    I have created a custom tag that my users are allowed to enter when editing
    HTML documents. I have added my custom tag to the tag library and also added it
    to the validator so there would be no issues when validating. (it does not
    matter that it is not valid HTML)

    So my problem is this:
    When users enter the custom tag into their document i would like the inner
    text to change color when viewing in design view. (for example: the way an H1
    tag would render)

    some notes:
    - Users are only editing independent HTML files and the files are in various
    directories and are not associated with any web sites. We use DW as a stand
    alone HTML editor.
    - I do not want any user interaction. Meaning i do not want the user to have
    to enter any CSS info or attach/create any Design-Time CSS.

    Some thoughts on how I would like to accomplish this:
    - Possibly inject some CSS code when the file is being opened. So the CSS is
    already in place when the file is open in DW. I am not sure how or where to put
    any code to intercept the opening of the file.
    - Attach some kind of default CSS or Design-Time CSS to the DW application, so
    everytime a file is opened in DW this CSS is somehow associated with it.

    Anyone have any ideas or thoughts?

    Thanks,
    kscap

    kscap Guest

  2. Similar Questions and Discussions

    1. Update Custom Collection that is bound to DataGrid made up of Custom COlumns
      I recieved some very useful help from Steven Cheng in an earlier post in this group entitled 'Dynamically create datagrid columns' and am now...
    2. Help with custom edit feature DataGrid C#
      I'm having some difficultly with the following problem. I'm using the datagrid, with a "custom rich editor". I'm trying to fire an event on the...
    3. Datagrid custom control feature query
      Hi, I have a user control in which i am creating dynamically a datagrid control, with the given dataset. But now I would like to add features to...
    4. How to assign a custom principal with a custom soap extension
      I have created a custom soap extension. What I need to do next is assign my own custom principal to the current request context so that the...
    5. Custom TextBox with custom attributes and properties question
      I have an webform that has a datarepeater on it. In that repeater I'm binding some data and I have put a textbox control in there. On the...
  3. #2

    Default Re: Custom Tag Feature

    You can do this with a translator, see the extending dreamweaver docs for
    details.

    --
    Kevin Marshall
    WebXeL.com Ltd
    [url]http://www.webxel.com[/url]

    ASP.NET Dreamweaver Extensions
    [url]http://www.webxel-dw.co.uk[/url]
    "kscap" <webforumsuser@macromedia.com> wrote in message
    news:erfi1t$43f$1@forums.macromedia.com...
    > All:
    >
    > I have ran into an issue that seems to need some extensibility.
    >
    > I have created a custom tag that my users are allowed to enter when
    > editing
    > HTML documents. I have added my custom tag to the tag library and also
    > added it
    > to the validator so there would be no issues when validating. (it does not
    > matter that it is not valid HTML)
    >
    > So my problem is this:
    > When users enter the custom tag into their document i would like the inner
    > text to change color when viewing in design view. (for example: the way an
    > H1
    > tag would render)
    >
    > some notes:
    > - Users are only editing independent HTML files and the files are in
    > various
    > directories and are not associated with any web sites. We use DW as a
    > stand
    > alone HTML editor.
    > - I do not want any user interaction. Meaning i do not want the user to
    > have
    > to enter any CSS info or attach/create any Design-Time CSS.
    >
    > Some thoughts on how I would like to accomplish this:
    > - Possibly inject some CSS code when the file is being opened. So the CSS
    > is
    > already in place when the file is open in DW. I am not sure how or where
    > to put
    > any code to intercept the opening of the file.
    > - Attach some kind of default CSS or Design-Time CSS to the DW
    > application, so
    > everytime a file is opened in DW this CSS is somehow associated with it.
    >
    > Anyone have any ideas or thoughts?
    >
    > Thanks,
    > kscap
    >

    Kevin Marshall Guest

  4. #3

    Default Re: Custom Tag Feature

    [q]Originally posted by: Newsgroup User
    You can do this with a translator, see the extending dreamweaver docs for
    details.

    --
    Kevin Marshall
    WebXeL.com Ltd
    [url]http://www.webxel.com[/url]

    ASP.NET Dreamweaver Extensions
    [url]http://www.webxel-dw.co.uk[/url]
    "kscap" <webforumsuser@macromedia.com> wrote in message
    news:erfi1t$43f$1@forums.macromedia.com...
    > All:
    >
    > I have ran into an issue that seems to need some extensibility.
    >
    > I have created a custom tag that my users are allowed to enter when
    > editing
    > HTML documents. I have added my custom tag to the tag library and also
    > added it
    > to the validator so there would be no issues when validating. (it does not
    > matter that it is not valid HTML)
    >
    > So my problem is this:
    > When users enter the custom tag into their document i would like the inner
    > text to change color when viewing in design view. (for example: the way an
    > H1
    > tag would render)
    >
    > some notes:
    > - Users are only editing independent HTML files and the files are in
    > various
    > directories and are not associated with any web sites. We use DW as a
    > stand
    > alone HTML editor.
    > - I do not want any user interaction. Meaning i do not want the user to
    > have
    > to enter any CSS info or attach/create any Design-Time CSS.
    >
    > Some thoughts on how I would like to accomplish this:
    > - Possibly inject some CSS code when the file is being opened. So the CSS
    > is
    > already in place when the file is open in DW. I am not sure how or where
    > to put
    > any code to intercept the opening of the file.
    > - Attach some kind of default CSS or Design-Time CSS to the DW
    > application, so
    > everytime a file is opened in DW this CSS is somehow associated with it.
    >
    > Anyone have any ideas or thoughts?
    >
    > Thanks,
    > kscap
    >

    [/q]

    thanks. i will take a look in the docs, in the meantime is this something that
    will transparent to the user? I can't have the user add any info or attributes
    to the tag itself.

    kscap


    kscap Guest

  5. #4

    Default Re: Custom Tag Feature

    Its totaly transparent, you can invent a tag called Widget that is placed in
    the page as:

    <widget>content here</widget>

    then write a translator that will force design view render it as if you had
    typed the following H1 tag:

    <h1 color="red">content here</h1>

    but all the time the real content in the file is still:

    <widget>content here</widget>

    --
    Kevin Marshall
    WebXeL.com Ltd
    [url]http://www.webxel.com[/url]

    ASP.NET Dreamweaver Extensions
    http://www.webxel-dw.co.uk>
    > thanks. i will take a look in the docs, in the meantime is this something
    > that
    > will transparent to the user? I can't have the user add any info or
    > attributes
    > to the tag itself.
    >
    > kscap
    >
    >

    Kevin Marshall Guest

  6. #5

    Default Re: Custom Tag Feature

    [q]Originally posted by: Newsgroup User
    Its totaly transparent, you can invent a tag called Widget that is placed in
    the page as:

    <widget>content here</widget>

    then write a translator that will force design view render it as if you had
    typed the following H1 tag:

    <h1 color="red">content here</h1>

    but all the time the real content in the file is still:

    <widget>content here</widget>

    --
    Kevin Marshall
    WebXeL.com Ltd
    [url]http://www.webxel.com[/url]

    ASP.NET Dreamweaver Extensions
    http://www.webxel-dw.co.uk>
    > thanks. i will take a look in the docs, in the meantime is this something
    > that
    > will transparent to the user? I can't have the user add any info or
    > attributes
    > to the tag itself.
    >
    > kscap
    >
    >

    [/q]

    Cool man thanks for the heads up. Following the example in the docs i got this
    to work. However i did notice that if my custom tags are already in the
    document when it is opened in DW, the translator does not seem to work.
    However, it does seem to execute cause i put a simple alert in and when the doc
    opened, my alert did kick off. it doesn't take affect until i actually touch
    the document.

    another thing i noticed is that once i do a "Apply source formatting" the
    translator works, but my original tag is stripped from code view, however the
    translation seems to still be working correctly but now my tag is gone from
    code view....

    any ideas?

    thanks
    kscap



    kscap 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