Message Boards

Liferay Calendar protlet customization

Kunal Mohan Bansal, modified 4 Years ago.

Liferay Calendar protlet customization

New Member Posts: 2 Join Date: 7/18/19 Recent Posts
Hi all,
I am a fresher and working on customization of calendar portlet in Liferay DXP 7.0.
I need to customize the "Add Event" button place and re-structure a lot of things in portlet.
But i am unable to find how and from where that button is loaded.
Till now, I had find the scheduler div in scheduler.jsp page in which "Add Event" button is loaded but that div is empty.
I had tried to search by id in jsp files to look for source but no luck.
Please guide me how the scheduler div is loaded.
thumbnail
Mohammed yasin, modified 4 Years ago.

RE: Liferay Calendar protlet customization

Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts
Hi ,
 Add Event button is loaded from the javascript , if you notice you will find new Liferay.Scheduler( ) function being called  in scheduler.jsp  page which actually creates the calendar and button .If you want to Customise the button u need to override the JS file  (https://github.com/liferay/com-liferay-calendar/blob/7.0.x/calendar-web/src/main/resources/META-INF/resources/js/scheduler.js).
 
Kunal Mohan Bansal, modified 4 Years ago.

RE: Liferay Calendar protlet customization

New Member Posts: 2 Join Date: 7/18/19 Recent Posts
Hi ,Got it.  Found button in renderUI.
Thank you very much for your help.
Kin To, modified 1 Year ago.

RE: RE: Liferay Calendar protlet customization

New Member Posts: 3 Join Date: 11/29/22 Recent Posts

Hi,

wonder if you have any success in customizing the scheduler.js file? if so, mind to see if you could shed some light on my issue with the scheduler.js overriding? 

https://liferay.dev/ask/questions/development/overriding-scheduler-js-doesn-t-reflect-the-changes-in-lr-7-2  

I am trying to do the same thing but without success. 

Many Thanks!