Closed (won't fix)
Project:
Views Accordion
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 May 2009 at 16:06 UTC
Updated:
18 Aug 2013 at 06:12 UTC
Can you think of any way to open a specified accordion row by clicking on a remote link.
My idea is to provide a submenu in my sidebar, that refers to the accordion displayed on the page. When you click on a link, one row should open, that you have specified in the link URL or somewhere else...
Any idea?
Thanks. Nice module!
Comments
Comment #1
manuel garcia commentedThis module will not provide such functionality sorry...
Puting things on a sidebar that affect the content on the node being displayed will either have to be done through custom jQuery you write yourself, or perhaps just go with one of the few views tabs modules that are out there, though none will put things on the sidebar though.
You may want to check this for other options, test things out, and decide =)
Comment #2
manuel garcia commentedAssuming my response solved your question, due to lack of response.
Comment #4
khalor commentedRe-opening as I think you may have misunderstood the original poster somewhat - doesn't sound like it's anything to do with pushing content to a node. It's a general feature request that I also would like to see:
Can rows in Views Accordion be opened via anchor links (either in the current page or elsewhere)? eg
Presumably there'd need to be some kind of naming convention as to how the anchors are named (based on the title field content? row number?)
jQuery UI's Accordion widget (http://jqueryui.com/demos/accordion/) optionally implements this, haven't looked under the hood yet as to how.
Comment #5
FL4PJ4CK commentedI'd realy like to see a feature like this, too.
I already added anchors to my accrodion view and can jump to them, but it's quite confusing for the user that the content doesn't show up then.
http://www.dev.mountainboard-world.de/glossar
Under the headline "Übersicht" you can see some anchor links so that you can see what I mean.
Comment #6
ssm2017 Binder commentedsubscribing
Comment #7
mattez commented+1
Comment #8
walden commented+1
Comment #9
quartertonecreative commentedI'd love to see this also... have had quite a few sites wanting this and so far have had no luck implementing. Fingers crossed someone smarter than me knows a way :)
Comment #10
cholden commentedI'm looking forward to a solution for this as well.
Comment #11
tiger_h commentedsubscribing
Comment #12
manuel garcia commentedI'm sorry people, but with d7 around the corner, this module's 6.x branch has gone into bug fixing mode only.
Good news is that the 7.x branch is using core's jquery ui accordion, which supports this feature.
Comment #13
xaa commentedehi,
could be very great if someone can develop this option for d6 :)
Comment #14
CatherineOmega commentedManuel, would you be at all opposed to someone else backporting those aforementioned D7 changes?
Comment #15
manuel garcia commentedCatherineOmega, xaa, views_accordion in D7 is a very different module than in d6. It uses jQuery UI accordion plug in, which allows for deep linking to have a certain row opened on page load. It doesn't allow for clicking somewhere else and opening the accordion item without a page load. There is nothing to be backported or developed for d6.
All you need to do in your own project is to code some jQuery to get this effect, and it really shouldn't be that hard for someone that knows js.
Comment #16
grasmash commentedUsing a little custom code and adding a few items to your view will accomplish this.
Create your view
-add this header with input filter "php code":
-add a 'Global NULL' argument to the view.
-add the field 'Node: NID'. Rewrite the output of this field to be:
If using views 3, I'd recommend setting all html wrapper, label, and html element settings to 'none'.
Add jQuery code to custom js script
-this can really be added anywhere as long as it's loaded on the view page
finally, add this css to hide the helper elements:
Now when you navigate to the URL my-view-path/[nid], it will open the accordion drawer with [nid].
It's messy, but it works, and it's not very resource intensive.
Comment #17
ilyasmdgh commentedhttps://drupal.org/node/970050 worked for d7