[Pro] Webyep loop in combination with "accordion"

I would like to combine a webyep loop with a accordion. I have a header DIV that triggers the transitionFX when clicked to show the hidden DIV.

However: in the webyep loop each new instance of the item triggers the first accordion while the new accordion is showed “open”.

This is of course because each new instance of the loop has the same parameters and the same DIV names (witch of course is not allowed). Is there a way to do this? I have found a “manual” to do this in Dreamweaver, so I know it can be done (hopefully).


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The ScriptyAccordion Action may help here. Rather than building the
effect by applying an action to each element (header and disclosed
“body” elements), this Action works by attaching to the parent element
that contains the children. As such, all you would have to do is make
sure that your WY loop output different HTML tags for each level of
the effect. For example, you could draw an HTML box, apply the Action
to it, then have the WY output an H3 for each header, and a P for each
body, inside that HTML box.

Walter

On Jun 25, 2009, at 6:35 AM, Eelco Deuling wrote:

However: in the webyep loop each new instance of the item triggers
the first accordion while the new accordion is showed “open”.

This is of course because each new instance of the loop has the same
parameters and the same DIV names


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thank you for your reply and help (as ever).
I have downloaded the action and will try it!


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Just be sure that your WY content is output into different HTML
“types” depending on whether it is the trigger element or the content
to be toggled. If you look in the Action, there’s a fairly long list
of element types you can use for each level of the effect. In your
first try, you said you were using DIVs for both, and this won’t work
with the SA Action.

Walter

On Jun 25, 2009, at 8:09 AM, Eelco Deuling wrote:

Thank you for your reply and help (as ever).
I have downloaded the action and will try it!


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Just for you info, I’ve just tested the ScriptyAccordion Action with a
WebYep loop and it works - very neat.

David

On 25 Jun 2009, at 12:37, Walter Lee Davis wrote:

The ScriptyAccordion Action may help here.


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

…i am working on it: …but the phone keeps on ringing… Thanks!


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes!
It works! (…it’s alive…).
It took some time for me to get the CSS styles working because i’ve used allmost everything except

    and
    .
    I had to find out I could set padding to zero in the stylesheet editor.
    …I have to learn to code! (I am working on that…).


    dynamo mailing list
    email@hidden
    Update your subscriptions at:
    http://freewaytalk.net/person/options

Yes it works!

I had to use the unordered list item: it took me some time to remember I could set padding to zero…

…I have to learn CSS… (d#mn!)


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options