Start scheduler expanded

Hi all, First of all I love this component. I would like to be able to have the scheduler start fully expanded when a client clicks on a link to it. the reason is that for some reason my menus drop down behind scheduler and a few other things on the site.

lumina.turnertechrepair.info is the url if you are curious.

As for menus - in components/com_scheduler/codebase/dhtmlxscheduler_wp.css, locate
dhx_cal_container{z-index:999;}
and replace with
dhx_cal_container{z-index:0;}

To auto-expand scheduler you can add in scheduler_include.html

scheduler.attachEvent("onXLE", function(){ scheduler.expand(); });

thanks Stanislav.

The worked perfectly.

Great Stanislav!
perfectly and function !

PS: but if can add the button/link " return to home" …!? because very little icon for reduce it…!?!

thanks :slight_smile:

Hi,
you may do something like this:

<a href="#" onclick="scheduler.collapse();this.parentNode.removeChild(this);return false;" style="position: absolute; left: 60px; bottom: 10px; z-index: 9999;">Back to home</a>
<script>
scheduler.attachEvent("onXLE", function(){
	scheduler.expand();
});
</script>

Always Radyno! thanks…

yes i try your code… but where i insert it…??? i’d like near icon (reduce)… or inside header…!!?

PS: Header 'id like change it, inside image, or title… (i ask it again last post) ! :wink:

You may add this code into scheduler_include.html file (wp-content/plugins/event-calendar-scheduler/scheduler_include.html).
Also you may modify style of link to specify where and how to show link:

style="position: absolute; left: 60px; bottom: 10px; z-index: 9999;"