[TYPO3-seminars] howto hide list view if empty

Tobias Schaefer tobias.schaefer at ptb.de
Thu Jul 26 12:28:32 CEST 2012


I found a solution using JavaScript:
<SCRIPT type=text/javascript>
elem = document.getElementsByClassName('tx-seminars-pi1-error');
for (var i = 0; i < elem.length; i++) {
  var parent = elem[i].parentNode.parentNode;
  parent.className = 'tx-seminars-pi1-hidden';
}
</SCRIPT>

If someone has a better solution i'd be happy.

Cheers,

Tobias
> Hi,
> 
> is there a way to hide the list view if there're no seminars to show.
> It's
> not enough to overwrite the error message, the header should also be
> hidden.
> If this isn't possible with some settings in seminars, maybe it can be
> done
> using css or javascript.
> Any suggestions?
> Thanks,
> 
> Tobias
> 




More information about the TYPO3-project-seminars mailing list