Page 1 of 1

How many sidebar plugins without a title?

Posted: Wed Jun 27, 2007 12:47 am
by Don Chambers
The default sidebar.tpl file includes the following:

Code: Select all

{if $item.title != ""}<h3 class="serendipitySideBarTitle {$item.class}">{$item.title}</h3>{/if}
Obviously, the h3 will not be processed if the title is blank.

So, out of curiosity, what plugins do not generate a title? From the perspective of a template based on graphical elements, I need the side bar title to print regardless of whether or not it is blank, so I will probably remove the {if}... I was just curious how many plugins do not have a title. The only one I know of is the HTML nugget plugin, where the title is user-configured, and can be left blank.

Re: How many sidebar plugins without a title?

Posted: Wed Jun 27, 2007 12:00 pm
by garvinhicking
Hi!

I don't know all of them, but I know there are a couple of them. At least every plugin that allows to configure a custom sidebar title!

Maybe you can use an {else} check instead of removing it, so that only a spacer is inserted and no graphical header for items that do not require it?

Regards,
Garvin