Hide titles Of Empty Panes

kryptik - October 8, 2008 - 01:16
Project:Panels Accordion
Version:5.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Tried to accomplish this myself, but couldn't figure it out.

Perhaps someone could confirm this is an issue?

I have accordions set up that show view panes. They work awesome! thank you for a great module, however it would be nice to hide empty titles. Currently I'm trying to output lists in each pane of the accordion, and empty lists return a single bullet. It would be great if the title would simply not show if it was empty.

There was a patch to hide empty panel tabs, but I couldn't figure out how to make it work with accordion. I'm sure it's just as simple.

#1

davexoxide - November 29, 2008 - 22:17

Since the title is what the clickable a tag because to cause the action to occur.
I can do something along the lines of

If title is hidden, use a space character and expand the width of the panels_accordion to be 100% via css so at least something could be clickable.

I think something like this is needed and will add it to the module. thanks for the suggestion.

#2

kryptik - November 30, 2008 - 06:06
Title:hide empty titles» Hide titles Of Empty Panes

Although I've moved to D6 and away from Panels for the time being, I think my concern might of been misrepresented. If I remember correctly I had multiple view panes in an accordion. What I should of said was "Hide Titles Of Empty Panes". Dunno what I was smokin' the day I posted this sorry.

What was happening is you have 5 view panes in an accordion. Wonderful accept if you have a view that returns no data, the person clicks the title and it expands to show... nothing. It would be more elegant to have only panes with content have their title show in the accordion. This goes along the lines of requests to hide empty tabs.

I've changed the title to reflect more accurately the concern, and hope that's okay.

 
 

Drupal is a registered trademark of Dries Buytaert.