Here's my dilemma: I'm trying to make Views Accordion plugin (for Views) and the jScrollPane code (both jQuery scripts) work together. See below for my tested scenarios and for my implementation idea and let me know if you have suggestions on how to fix this.

1) First Scenario:

Content Type and Contemplate

here is code in Contemplate:

<?php print check_plain($node->title) ?>
<div class="holder">
			
			<div id="pane2" class="scroll-pane">
<?php print check_plain($node->field_news4_story[0]['value']) ?>

</div>
</div>

Here is the content itself as Drupal node using the above template:

http://sites.fcps.org/testad/node/15

Notice that it's displaying the correct jScrollPane visual based on the added

in the above template code.

Now the Views created that is filtering in the above fields is displaying the post using Views Accordion plugin. You can see that View here:

http://sites.fcps.org/testad/news4

If you click on the headline the story will open up beneath using jQuery Views Accordion plugin. Now the interesting thing here is that it does not return any of the custom

code from my contemplate code about even though it's filtering on the fields from that template's content.

It's also not displaying any of the jScrollPane layout. It's just showing the Views Accordion layout.

2nd Scenario:

Here's another piece of content:

http://sites.fcps.org/testad/node/14

This time it has the jScrollPane code right in the content field in the node. It's displaying correctly here.

Now look at the corresponding View I created that's filtering in this piece of content. I have this as a View block on my home page:

It's doing the same Views Accordion since I'm using the Views Accordion plugin and it's expanding the content below the headline but no content is showing - just a background color. So there's obviously some conflict going on between the jScrollPane code and the Views Accordion code. Now here's what I want:

- I'd like the content to be using both - I want the Views Accordion functionality where the story opens below the headline with jQuery, but I want the customized scroll pane - that's why I'm trying to use jScrollPane with Views Accordion. But they appear to be conflicting.

Does anyone have a suggestion on where to look to fix the conflict and make both of these functions work on one piece of content?

Thanks in advance.

-backdrifting

Comments

ambientdrup’s picture

BTW - here's what I'm using for jScrollPane:

http://www.kelvinluck.com/assets/jquery/jScrollPane/jScrollPane.html

and here's Views Accordion:

http://drupal.org/project/views_accordion