exclude list in calendar "add reccord" dropdown list

uudis

New Member
Hello!

Can someone help to explain me how to exclude one particular list from drop down list on calendars "Add new record" pop-up window. The same time keeping the existing records of excluded list showing in calendar day/month/week view..!?
How to manage that for registered users? ...because for that particular list ...if i change list access options -> Add records = Super User ..the adding option disables for all calendar lists.. :(

Help!
 
friendly bump! :)
I think I found the lines where list access for adding new records is defined, but can not get around this issue...
it is ../components/com_fabrik/models/list.php aroun line 4111

I have Registered user with id=2 , but some lists have to be available for Super User.. id=6, so hidden form select menu. Where is the cache? o_O

Code:
/**
    * Checks user access for adding records
    *
    * @return  bool  access allowed
    */
 
    public function canAdd()
    {
        $params = $this->getParams();
 
        if (!array_key_exists('add', $this->access))
        {
            $input = JFactory::getApplication()->input;
            $groups = JFactory::getUser()->getAuthorisedViewLevels();
            $this->access->add = in_array($this->getParams()->get('allow_add'), $groups);
            $hideAdd = $input->getBool('hide-add', false);
 
            if ($hideAdd)
            {
                $this->access->add = false;
            }
        }
 
        return $this->access->add;
    }

Please have some look on it.. I hope the answer is some where here!
 
yes ...and ....code form plugins/farbik_visualization/calendar/calendar.js line around 949
Code:
    /**
    * Open the add event form.
    *
    * [USER=20939]param[/USER] e    Event
    * [USER=20939]param[/USER] view The view which triggered the opening
    */
    openAddEvent: function (e, view)
    {
        var rawd, day, hour, min, m, o, now, thisDay;
       
        if (this.options.canAdd === false) {
            return;
        }
....

...i think options.canAdd here defines only general aspect ...to show or not to show all lists... right?
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top