block one access value

JanJapsa
JanJapsa
Offline
0
Hello,
In the "New event"-form I like to block one Access value (of the 2 access values "Private"/ "Public") or at least I want to show "Public" as a default value.
How can I fix that?

Accepted Answer

Thursday, January 15 2015, 10:52 AM - #Permalink
0
if you commented accesslist[0], then you need to make accesslist[1] be accesslist[0] (it needs to be on position 0)
The reply is currently minimized Show
Responses (5)
  • Accepted Answer

    Monday, January 12 2015, 11:38 AM - #Permalink
    0
    well, a little bit of coding (removing that option in a few files) would be necessary for that...
    The reply is currently minimized Show
  • Accepted Answer

    JanJapsa
    JanJapsa
    Offline
    Monday, January 12 2015, 09:26 PM - #Permalink
    0
    Will you tell me which files I have to adjust and/or will you provide me the code?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 13 2015, 05:12 PM - #Permalink
    0
    I've been looking into it and the easiest and fastest way to achieve this would be if you go to file:
    /components/com_calendarplanner/helpers/helpers.php and find the static function getAccesslist(), around line 71, and there you remove the option you don't want.
    The reply is currently minimized Show
  • Accepted Answer

    JanJapsa
    JanJapsa
    Offline
    Wednesday, January 14 2015, 09:42 PM - #Permalink
    0
    Thanks for info.
    I commented the accesslist[0], so only accesslist[1] is active.
    In the Calender Month view this works, but in the New Event form the access select field is empty. After saving is has been handled as AccessID[0].
    So, I think there is more to adjust.
    The reply is currently minimized Show
  • Accepted Answer

    JanJapsa
    JanJapsa
    Offline
    Thursday, January 15 2015, 06:08 PM - #Permalink
    0
    It works, many thanks.
    The reply is currently minimized Show
Your Reply