Skip to main content
Known Participant
March 2, 2011
Answered

Extension handler "type" attribute

  • March 2, 2011
  • 1 reply
  • 1695 views

Hey everyone,

I'm writing my first CF Builder extension, which is just some text processing that will happen in the editor on selected text.  Easy enough so far.

I just wanted to verify what the docs say about the "type" attribute of the handler tag in the ide_config.xml file:

Type:

Specifies the handler type.
The handler type you can specify is "CFM"

What this means is that my extension menu item doesn't show up when right clicking in the editor in ANY files but CFM files.  So if I want to process text in an HTML or PHP file, I'm pretty much out of luck.  This seems so short-sighted and ridiculous.  I hope I am wrong.

Thanks,

Andy

This topic has been closed for replies.
Correct answer cfjedimaster

One other thing, I downloaded CF Builder 2.0 Beta today and I tried my extension in there on files other than .cfm and .cfc and still no go.  My extension works correctly, so I assume this is expected behavior or there is some setting somewhere I am missing.  I went over the whole Extension section in the docs but I don't see anything that touches on this.


Shoot - I'm sorry. I thought you were right clicking on files as in

the Navigator view, where it would work. But as to the editor, you are

right, I don't think you can do it in a non-CFM file, UNLESS you right

click/open the file in Navigator and select Open with and pick the

Builder editor. Give that a shot?

1 reply

cfjedimaster
Inspiring
March 3, 2011

You are wrong. The type here has nothing to do with the type of

file you can work with the navigator. It is the type of handler. Ie,

when menu item X is executed, run this handler, and what type of

handler is it. Right now CFB can only run CFM handlers files In the

future that might change.

Known Participant
March 3, 2011

Okay, Ray.  I am glad I am wrong.  So, why doesn't my context menu appear when I right-click in the editor when I have a file other than a .cfm or .cfc open?

Thanks,

Andy

cfjedimaster
Inspiring
March 3, 2011

Can you share your ide_config.xml?