Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
marfarma #1
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
-
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... -
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.... -
custom cursor - drill behavior
ReBump... interesting. nobody knows it, or maybe I am wishing something imposible :( -
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... -
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... -
Randy Edmunds #2
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



Reply With Quote

