Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Newstream: Top Left Panel Open By Default

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi,

I would like to load the top right hidden Panel in its 'open' state by default...could you advise me please how to go about this?

Cheers
  • marc's Avatar
  • marc
  • Previous Member
  • 7 posts
  • Karma: 0
The administrator has disabled public write access.
Hey Marc,

In the Newstream templates file
/js/template.js

you can add the following line.

jQuery('#openPanel').trigger('click');

That should do the trick.
Let us know if it worked.

Cheers,
Jason.
  • Jason D's Avatar
  • Jason D
  • 6 Month Developer
  • 2957 posts
  • 12 Thanks
  • Karma: 75
The administrator has disabled public write access.
Hi Jason,

Thanks for looking at this for me. Have tried to implement the change but, depending on where it goes, it either has no effect or makes the panel flash once it has been clicked - woah!

Thx M
  • marc's Avatar
  • marc
  • Previous Member
  • 7 posts
  • Karma: 0
The administrator has disabled public write access.
Hey Marc,

No probs. This has been tried and it works.

In the template.js file the first 20 lines should look like this

jQuery(document).ready(function() {

jQuery(".tab").click(function(){
if (paneltype == 'opacity') {
    jQuery("#memberArea").animate({opacity: "toggle"}, 600);
  }
  if (paneltype == 'width') {
    jQuery("#memberArea").animate({width: "toggle"}, 600);
  }
  if (paneltype == 'height') {
    jQuery("#memberArea").animate({height: "toggle"}, 600);
  }
 
jQuery("a#closePanel").toggleClass("active");
jQuery("a#openPanel").toggleClass("active");
return false;
});


Right after that you can add this.

jQuery(".tab").trigger("click");

Works fine for me. Let us know.

Cheers,
Jason.
  • Jason D's Avatar
  • Jason D
  • 6 Month Developer
  • 2957 posts
  • 12 Thanks
  • Karma: 75
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers