hi all!
I've been making a few updates and working on a bit of a problem.
The integration of RS into our editor is making the process of loading
content into our CMS actually FUN!
*GASP*
The biggest update I am working on so far has been creating an
extension to publish podcasts & audio / video streams via Radiant with
the management of the assets themselves done through RS; so the
ResourceSpace server doubles as the media manager and assets server.
This integrates very well into "blog-like" and straight "article-
style" sections of the site where I found it was beneficial to be able
to hyperlink directly to a media resource on the
assets server, with the end goal being that the user almost never has
to type a URL for anything.
Yet an interesting problem has arised ....
As stated previously I am running RadiantCMS, which runs on Rails; and
I am mashing up with RS through simple iframes and Julien Lecomte's
crossframe method to get the frames talking.
In prior tests I had used a simple onclick function and
$("input.wym_src").val($(this).attr('src'));
to insert the image's source into the wymeditor src field. This basic
method will work on most editors with a little hacking.
And this should suffice for installations which are running on the
same exact domain as the CMS ( ie
www.mydomain.com/cms/ &
www.mydomain.com/assets/
); however, in our scenario I have Radiant running on one subdomain
and RS running on a different subdomain which creates a cross-domain
scripting issue unfortunately. Yet using cross-frame & a proxy this
*should* not be a problem.
All works fine on the initial collections.php page presented to the
user when using the entering the image insert window, however there is
something weird going on when the user selects a different collection
that breaks the ability to send the image's source URL to the
receiving input field in the parent frame.
Take a look at the screenshot's I have linked to below to get the big
picture.
http://media.themetnet.org/Picture15.png
http://media.themetnet.org/Picture16.png
http://media.themetnet.org/Picture17.png
http://media.themetnet.org/Picture18.png
http://media.themetnet.org/Picture19.png
http://media.themetnet.org/Picture20.png
I am including a link to a down and dirty version of this mashup which
requires:
RadiantCMS with the Wymeditor filter installed.
ResourceSpace.
Copy the files into their corresponding folders on both sites and edit
the following files with proper URLs for your sites
(you can search for
www.myradiantsite.com &
www.myresourcespacesite.com
in the source):
jquery.wymeditor.js
collections_wymeditor.php (which resides alongside collections.php, so
don't delete collections.php)
Source:
http://media.themetnet.org/wymeditor_radiant_resourcespace_mashup_0.1.zip
You should be able to get the basic idea of how to integrate RS into
other CMSs from this stripped down code.
If anyone can help with the cross-frame issue I seem to be having that
would be much appreciated.
Cheers all;
Ash