Using Page_Attachments in custom extensions

I’m building a few extensions for a client project and would like to tie
Page_Attachments and WYMeditor into the new/edit screens of my
extensions. Currently Shards allows these two extensions to integrate
with Radiant’s page editing tools, but how would I get them to play nice
with my custom admin screens?

Any pointing-in-the-right-direction would be appreciated. Thanks!

  • Dave

David P. wrote:

I’m building a few extensions for a client project and would like to tie
Page_Attachments and WYMeditor into the new/edit screens of my
extensions. Currently Shards allows these two extensions to integrate
with Radiant’s page editing tools, but how would I get them to play nice
with my custom admin screens?

Any pointing-in-the-right-direction would be appreciated. Thanks!

I guess what I am really asking is if I can take advantage of these
existing plug-ins, or if I need to use attachment_fu and wymeditor on
their own in my new extensions. I’m assuming the latter, right?

On Thu, Apr 17, 2008 at 5:18 PM, David P. [email protected]
wrote:

I guess what I am really asking is if I can take advantage of these
existing plug-ins, or if I need to use attachment_fu and wymeditor on
their own in my new extensions. I’m assuming the latter, right?

I think you could inject a javascript file in the edit page from your
extension that add some functionality.
For example from your js you could add a button near the name of
each attachment that add it in the editor.
Is that what you need?


Andrea F.
http://gravityblast.com - http://nimboo.net

Andrea F. wrote:

On Thu, Apr 17, 2008 at 5:18 PM, David P. [email protected]
wrote:

I guess what I am really asking is if I can take advantage of these
existing plug-ins, or if I need to use attachment_fu and wymeditor on
their own in my new extensions. I’m assuming the latter, right?

I think you could inject a javascript file in the edit page from your
extension that add some functionality.

That could work for getting WYMeditor in place. I’ll try that tomorrow.
Thanks!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs