× If you expect answers you should describe your problem and give as much information's as possible. (SQL-Structure, Template Code, Joomla Version ...) Please read this before posting: joodb.feenders.de/support.html

Checkbox to show/unshow

More
10 years 11 months ago - 10 years 10 months ago #1883 by marec33
Checkbox to show/unshow was created by marec33
Hello,

Is possible to add to searchbox some checkboxes for show/unshow for example {joodb ISBN} or {joodb subtemplate|author}?

Thank you for answer
Last edit: 10 years 10 months ago by joest.

Please Log in to join the conversation.

More
10 years 11 months ago #1885 by Dirk
Replied by Dirk on topic Re: Checkbox to show/unshow
I guess you want to realize something like at the documentation database.
joodb.feenders.de/support/documentation.html

This was made with javascript and it's rather complex.
<script type="text/javascript">
	window.addEvent('domready', function(){
		if ($('result')) {
	 	   var flipContent = new Fx.Accordion($$('#result .fliphead'), $$('#result .flipcontent'),{alwaysHide: true, display: -1,trigger: 'click'});
	  }

	});
</script>

An easy way is to hide the subform result by default and put them into a container wit a class (e.g. .subresult).

Now you can add an "onclick:$$('.subresult).toggle();" to a button or link.

Please Log in to join the conversation.

Moderators: Dirkjoest