Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: calendar week view choose begin hour

calendar week view choose begin hour 11 years 9 months ago #19785

  • sergeweb54
  • sergeweb54's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 49
  • Karma: 1
  • Thank you received: 0
hi,

i'd like to show my calendar view from 8.00 to 22.00
actually it is 00.00 to 24.00

is there any way to do that ?

Please Log in or Create an account to join the conversation.

calendar week view choose begin hour 11 years 9 months ago #20038

  • gyam
  • gyam's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
+1
Hi,
It seems to be hard coded.... Why not implement an option for that? Or i haven't find it yet...

Please Log in or Create an account to join the conversation.

calendar week view choose begin hour 11 years 8 months ago #20084

  • gyam
  • gyam's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
I start looking in the code. I guess it's in components\com_dtregister\assets\js\calendar\jquery.calendar.js...

The trick for the beginning will be to manage the red 'now' ligne and the table height which seems to be constant in the native code.

Please Log in or Create an account to join the conversation.

calendar week view choose begin hour 11 years 8 months ago #20087

  • gyam
  • gyam's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Ok, that's the start. Open jquery.calendar.js and set the hstart and hend at the beginning.
Tell me if you got some bugs. I will continue next days to improve the stuff.
Attachments:

  • Rendering Error in layout Attachment/Item: Property "protected" is not defined. Please enable debug mode for more information.

Please Log in or Create an account to join the conversation.

calendar week view choose begin hour 11 years 8 months ago #20089

  • gyam
  • gyam's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Ok, so, I got
var hstart = 8;
var hend = 22;
at the beginning of jquery.calendar.js and other modifications inside the script. I've modified the components\com_dtregister\assets\css\calendar\calendar.css as well (there is a mistake in the file I updated above. You have to put min-height:500px; at ligne 35.

On top of that, I've modified the administration of DT in administrator\components\com_dtregister\views\config\tmpl\tab.calendar.php in order to get 2 entries, allowing directly the starting and ending hour set.
Got two more lines in the database in table _dtregister_config and everything is updating nicely.

BUT how can I do to add such options in jquery.calendar.js? Any clue to do so? I really need help on this stage as I'm a bit lost in the code of all the DT files.... :cry:
In fact, the question is how to pass data from database to any DT script?

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.295 seconds