Hello,

I have being reading about using Adobe Spry with Drupal and found the Spry Framework Module for Drupal here:
http://drupal.org/project/spry

It appears that there is only support for Drupal 5.x at the moment...

Has anyone had any luck integrating Spry with Drupal 6.x?

Thanks
Dave

Comments

Mapi99’s picture

I've integrated Spry Accordions into D6. I'm currently finishing it off into a little module, hopefully i'll add some more functionality soon.

somebodysysop’s picture

Would you mind sharing anything at all?

jerryjoh’s picture

If anyone is interested I have been able to add a SPRY collapsible panel to an input form textarea with fckeditor enabled.

I included the SPRY js and CSS in the init hook as follows:

    	drupal_add_css(drupal_get_path('module', 'qanda') . '/js/SpryCollapsiblePanel.css');
	drupal_add_js(drupal_get_path('module', 'qanda') .'/js/SpryCollapsiblePanel.js');

I set the required divs using prefix and suffix elements as follows:

	$form['answer'] = array(
		'#prefix' => '<div id="CollapsiblePanel1" class="CollapsiblePanel"><div class="CollapsiblePanelTab" tabindex="0">Answer this question</div><div class="CollapsiblePanelContent">',
		'#type' => 'textarea',
		'#attributes' => array('class' => 'qanda-answeranswer'),
		'#title' => t('Answer'),
		'#required' => TRUE,
		'#wysiwyg' => TRUE,
		'#suffix' => '</div></div>',
	);
	drupal_add_js('var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {contentIsOpen:false})', 'inline', 'footer');

The drupal_add_js statement is to generate the inline JS to instantiate the object. I had to direct it to the footer in order to get it to work.

Hope this helps someone. It took me a few hours of digging and trial and error, but it works great!

bilbot’s picture

I have a membership table for 60 people that I developed using Spry. Down the left side is NAME - if you click on the NAME, the right side shows a Detail page of the individual. This allows me to keep the site relatively compact. Here is my workaround to get it into Drupal.
Only registered members can see this information.
The "src" link is to a self contained web page written in Spry.
Node input format is PHP.
iframe module enabled.
(note: looking at the webpage code in your browser, the "real address" of this link can be seen. ) Any suggestions on how to hide it from public view?

<?php 
global $user;
if (!$user->uid) {
print ("You are not logged in!");
 } else
{ 
echo "Hello: " . ($user->name);
?>
<div class="field_memberiframe">
  <h3>ABC Club Members</h3>
  <iframe src="http://www.website.com/memberViewSpry.php" width="620" height="650">[URL]</iframe>
</div>
<?php  }

?>
rgracia’s picture

subscribing