Hi

I want to apply accordion menu style on some of my blocks on the sidebar.
Can anyone please guide me with the steps required to achieve this.

Thanks in Advance!

Comments

sej123’s picture

Any help would be highly appreciated!

Thanks a lot in Advance!

manuel garcia’s picture

If you are looking to create a listing of something using an accordion, you may want to try a module I developed recently: Views Accordion

sej123’s picture

Thanks for this!

I am actually looking for putting the individual blocks into the accordion style. Each block displays the result of the respective views, eg - Latest Books, Latest Articles, and so on.

Is there a way to achieve this?

manuel garcia’s picture

Just use views to grab the listing of nodes that you want, as usual, and choose views accordion as your display style once you have the module installed.

sej123’s picture

Thanks for this Manuel!

I think I was not able to make it clear what I am looking for.
I"ll try once again.

I have created number of views for latest articles, Latest News, Top Titles, Highest Rated Articles which are displayed as blocks on the right sidebar. All the views has Node titles listed under.

Latest Titles

--title:1
--title:2
--title:3
--title:4
--title:5

Latest News

--title:1
--title:2
--title:3
--title:4
--title:5

Top Titles

--title:1
--title:2
--title:3
--title:4
--title:5

Highest Rated Articles

--title:1
--title:2
--title:3
--title:4
--title:5

Now, I want these blocks to be placed in accordion style.
When you click Latest Titles, it expands and shows the filtered nodes and when you click Latest News, the Latest Titles should collapse and fields of Latest News are shown in the expanded view. I think, this can be achieved if we can add a view as field to the main view.

I hope I have made my point clearer.

Please guide me if this is possible?

manuel garcia’s picture

These are different block displays, so with views accordion you cannot do this sorry.

You'll have to develop this behavior yourself with jquery, or implement the accordion from jquery ui, http://jqueryui.com/ , for your specific case.

manuel garcia’s picture

I've used collapsiblock on d5 before, perhaps it works fine also on d6, might want to try it out, though it isnt an accordion, it does allow you to collapse the blocks and expand them... (without coding anything that is).