Joomla Categories

Hi,
I installed the component to work with Joomla, and it seems to work fantastic.

I would like to use this calendar for having different categories. Thus i did a new extrafield of select type (I associated a color to each category), so when i make a new event, i associate to the category i want. Then i would like to display the calendar of every specific select type.
It is possible ?

I think probably will be something like
index.php?option=com_scheduler&view=scheduler&cat=cat_1
and to write some line on the controller or in the view,
but i don’t know which one.

someone can help me please ???
thanks in advance,
Albert

Hello,

Can you please explain in detail what exactly you would like to achieve?

Do you want some means (buttons, for example) to toggle display of certain categories in the scheduler?

Best regards,
Ilya

Hi I explain:

I would like to have 5 diferent calendars!
Each one with their sub-calendars.

I explain:
I need to display the usage of some equipments on different laboratories. Every laboratory (there is 5) have some specific equipment (from 3 to 8).
So i would like a link from Joomla to every specific calendar. Then in every calendar, by using the custom field - select list create the equipments.

What i did till now to solve it is: ( i try with 2, if it works it will be the same for 5)
create 2 jos_scheduler_options tables (jos_scheduler_options_lab1, jos_scheduler_options_lab2) and 2 jos_events_rec (jos_events_rec_lab1, jos_events_rec_lab2)

modify the controller:
//Added code to select calendar
$session =& JFactory::getSession();
$selected_calendar = $session->get(‘selected_calendar’);
switch($selected_calendar){
case 1:
$table = ‘scheduler_options_lab1’;
$tableEvents = ‘events_rec_lab1’;
break;
case 2:
$table = ‘scheduler_options_lab2’;
$tableEvents = ‘events_rec_lab2’;
break;
default:
$table = ‘scheduler_options’;
$tableEvents = ‘events_rec’;
break;
}
//End added code to select calendar

modify the model/scheduler.php and the controller:
//Added code to select calendar
$session =& JFactory::getSession();
$selected_calendar = $session->get(‘selected_calendar’);
switch($selected_calendar){
case 1:
$table = ‘scheduler_options_lab1’;
$tableEvents = ‘events_rec_lab1’;
break;
case 2:
$table = ‘scheduler_options_lab2’;
$tableEvents = ‘events_rec_lab2’;
break;
default:
$table = ‘scheduler_options’;
$tableEvents = ‘events_rec’;
break;
}
//End added code to select calendar

modify the view.html.php:

	//Added code to select calendar
	global $mainframe;
	$params_cal = &$mainframe->getParams();
	$selected_calendar = $params_cal->get('calendar');
	$session =& JFactory::getSession();
	$session->set('selected_calendar', $selected_calendar);
	//End added code to select calendar

It works fine for displaying the events (i added directly to the table), but i have problems with the configuration of each calendar.

thaks in advance,
Albert

Existing functionality build with single scheduler per site in mind, and it will be very complicated to change such behavior.

If you don’t care about integration with Joomla’s security model, you can just place 5 standalone scheduler - each for their own category. ( configuring standalone schedulers is a lot simplier than hacking the component’s code )

by 5 standalone scheduler you mean not use the component? So code it alone and then to call from a wrapper, isn’t?

I also tried that, but i did not get as many funciotnality as using the component. For instance, i did not get working the thing of the custom fields with a select box and diferent colours, i could not make only readable, etc…

If i could get exactly what i have individually I would use the standalone way.

Hello,

Please check scheduler\samples\ folder where all samples are stored.

samples/01_initialization_loading/08_options.html

samples/02_customization/01_events_coloring.html

03_extensions/12_readonly_form.html
03_extensions/14_readonly_event.html

Best regards,
Ilya

Hi,

Finally i did what you recommend and it is fine, but there is a couple of things to refine.

One is relative to the template, as the title of each ‘section’ is bigger than one element line, only the first part of the section is visible. I would need to make the height of that row bigger, i tried by playing with the css file, but i found no way. (i attached an screenshot)

The second is relative to modifications. When i double click on an event, it appears the window i attached on the second screenshot. My purpose is only to display, not allowing to modify or delete. On the popup ‘theorically’ you can modify or delete, then if you refresh the page, the changes roll back, so there is no real modification, but the users maybe think they can.
There is any way to remove those buttons?

thanks in advance,

Albert




need to make the height of that row bigger
scheduler.xy.scale_height = 100;

My purpose is only to display, not allowing to modify or delete
Are you still need the ability to insert new events?
If you need a fully readonly form you can use
docs.dhtmlx.com/doku.php?id=dhtm … donly_view

Hello,

Also it is possible to simply remove those buttons from the lightbox form:

Best regards,
Ilya