Morgen,
danke für die Antworten.
@skydivematy: Das wäre aber mit einer Anmeldung verbunden. Das sollte ja nicht sein.... Vor allem weil ich bei meiner Nutzergruppe, die auf die Seite geht, auch nicht so die Probleme sehe und dann manuell kontrollieren kann.
@dvschuetz: Die Rechte auf Public zu zuteilen ist die eine Sache, aber die Umsetzung einer andere 😃
Ich hab das wie im Manual probiert, aber es läuft nicht. Hab den Code auf jeder möglichen Stelle versucht einzubauen, aber es macht sich so garnichts bemerkbar.
Ich habe eine Benutzergruppe Calendar angelegt und einen Benutzer Calendar und diesen der Gruppe zugeordnet.
Dann habe ich unter Template -> Typoscript Templates(sysordner) -> Extensions folgenden Code eingefügt
plugin.tx_cal_controller {
rights {
edit = 1
create.event.enableAllFields.group = Calendar
}
}
Aber leider habe ich keine Möglichkeit im FE etwas einzugeben...
Dann habe ich im Konstanten Editor im Basis Plugin das Häkchen bei Enable FE Editing angeschaltet.
Man kann Benutzergruppen scheinbar (unabhängig von Calendar Base) eindeutige ID's zuweisen. Ich finde das aber nicht oder das gibt es mittlerweile nicht mehr....
Ansonsten habe ich das FE plugin und die 2 basis plugins eingefügt... Es ist mir klar, dass ich den folgenden Code anpassen muss. Leider habe ich so etwas bisher noch nicht gemacht... Auch wenn es für euch einfach aussieht, ist es für mich ein ganz schöner akt...
Das wichtigste was ich wissen wöllte, wäre wo genau der Code hin gesetzt werden muss und ob es einfach reicht überall Public auf 1 zu setzen? Kann ich die Beschreibungen im Code lassen?
# @description The Typoscript object for rights is used to configure frontend editing of calendar events,
# locations, and groups.
rights {
# @description Turns frontend editing on. If this is not enabled, none of the other rights options
# will have any effect.
edit = {$plugin.tx_cal_controller.rights.edit}
# @description Comma separated list of all administrator users. These users will have full
# privileges for frontend editing.
admin.user = {$plugin.tx_cal_controller.rights.admin.user}
# @description Comma separated list of all administrator groups. These groups will have full
# privileges for frontend editing.
admin.group = {$plugin.tx_cal_controller.rights.admin.group}
# @description Comma separated list of all users allowed to be selected for notification or shared
allowedUsers =
# @description Comma separated list of all groups allowed to be selected for notification or shared
allowedGroups =
create {
calendar {
# @description Page to save frontend-created calendars to.
saveCalendarToPid = {$plugin.tx_cal_controller.rights.defaultSavePid}
# @description Comma separated list of all users that are allowed to create calendars.
user =
# @description Comma separated list of all groups that are allowed to create calendars.
group =
# @description 1 if public user should be allowed to create calendar. default 0
public = 0
# @description Comma separated list of fields, that are not shipped with the standard cal extension, but are to be saved inside the tx_cal_calendar record
additionalFields =
# @description Comma separated list of all users and groups that should have all calendar
# fields enabled.
enableAllFields {
user =
group =
public = 0
}
# @description Comma separated list of all users and groups that should have a specific calendar
# field enabled.
fields {
hidden {
user =
group =
public = 0
default =
required = 0
}
title {
user =
group =
public = 0
default =
required = 1
}
calendarType {
user =
group =
public = 0
default =
required = 0
}
owner {
user =
group =
public = 0
default =
required = 0
}
activateFreeAndBusy {
user =
group =
public = 0
default =
required = 0
}
freeAndBusyUser {
user =
group =
public = 0
default =
required = 0
}
ics_file {
user =
group =
public = 0
default =
required = 0
}
exturl {
user =
group =
public = 0
default =
required = 0
}
refresh {
user =
group =
public = 0
default =
required = 0
}
}
}
category {
# @description Page to save frontend-created categories to.
saveCategoryToPid = {$plugin.tx_cal_controller.rights.defaultSavePid}
# @description Comma separated list of all users that are allowed to create categories.
user =
# @description Comma separated list of all groups that are allowed to create categories.
group =
# @description 1 if public user should be allowed to create category. default 0
public = 0
# @description Comma separated list of fields, that are not shipped with the standard cal extension, but are to be saved inside the tx_cal_category record
additionalFields =
# @description Comma separated list of all users and groups that should have all category
# fields enabled.
enableAllFields {
user =
group =
public = 0
}
# @description Comma separated list of all users and groups to be able to create general categories
generalCategory {
user =
group =
}
# @description Comma separated list of all users and groups to be able to create public categories
publicCategory {
user =
group =
}
# @description Comma separated list of all users and groups that should have a specific category
# field enabled.
fields {
hidden {
user =
group =
public = 0
default =
required = 0
}
title {
user =
group =
public = 0
default =
required = 1
}
headerstyle {
user =
group =
public = 0
default = default_catheader
required = 0
# @description Comma separated list of available category headerStyles
available = default_catheader,yellow_catheader,orange_catheader,red_catheader,pink_catheader?,green_catheader,grey_catheader
}
bodystyle {
user =
group =
public = 0
default = default_catbody
required = 0
# @description Comma separated list of available category bodyStyles
available = default_catbody,yellow_catbody,orange_catbody,red_catbody,pink_catbody,green_cat?body,grey_catbody
}
calendar_id {
user =
group =
public = 0
default =
required = 0
}
parent_category {
user =
group =
public = 0
default =
required = 0
}
shared_user_allowed {
user =
group =
public = 0
default =
required = 0
}
}
}
event {
# @description Page to save frontend-created events to.
saveEventToPid = {$plugin.tx_cal_controller.rights.defaultSavePid}
# @description Comma separated list of all users that are allowed to create events.
user =
# @description Comma separated list of all groups that are allowed to create events.
group =
# @description Enable this to allow everyone to create public events.
public = 0
# @description Comma separated list of all users and groups that are allowed to create events also in the past
inPast {
user =
group =
}
# @description Comma separated list of all users and groups that are allowed to create events in future, starting today
# @see plugin.tx_cal_controller.create.event.fields.start.constrain.2.field change it to: today
forTodayAndFuture {
user =
group =
}
# @description Comma separated list of user ids of fe-users to be notified if a public event has been created
notifyUsersOnPublicCreate =
# @description Comma separated list of all users and groups that are allowed to create events in a public calendar.
publicEvents {
user =
group =
public = 0
}
# @description Comma separated list of fields, that are not shipped with the standard cal extension, but are to be saved inside the tx_cal_event record
additionalFields =
# @description Adds the frontend user who created an event to the notification field.
addFeUserToNotify = 0
# @description Adds the frontend user who created an event to the shared field.
addFeUserToShared = 0
# @description Adds the frontend user group to the shared field.
addFeGroupToShared = 0
# @description Comma separated list of frontend user groups, which are to be ignored and NOT to be added as shared
addFeGroupToShared.ignore =
# @description Replaces the standard textarea with the installed rte.
enableRTE = 1
# @description Comma separated list of all users and groups that should have all event
# fields enabled.
enableAllFields {
user =
group =
public = 0
}
# @description Offset in minutes. The user is allowed to create a new event in now + timeOffset
timeOffset = 0
# @description Comma separated list of all users and groups that should have a specific event
# field enabled. ATTENTION: for public just use 1/0 => enable/disable
fields {
hidden {
user =
group =
public = 0
default = 0
required = 0
}
event_type {
user =
group =
public = 1
# Possible values: 0=event,3=meeting
allowedUids = 0,3
default = 0
required = 0
}
calendar_id {
user =
group =
public = 1
default =
required = 1
}
category {
user =
group =
public = 1
default =
required = 0
allowedUids =
}
startdate {
user =
group =
public = 1
default =
required = 1
constrain {
1 {
#less/before/greater/after/equals/regexp/userfunc
rule = regexp
regexp = /(\d{4})-(\d{2})-(\d{2})/
message = TEXT
message {
dataWrap = <span class="constrain">%%%WRONG_DATE%%% (yyyy-mm-dd)</span>
}
}
}
}
enddate {
user =
group =
public = 1
default =
required = 1
constrain < plugin.tx_cal_controller.rights.create.event.fields.startdate.constrain
}
starttime {
user =
group =
public = 1
# usage: 1300 (hhmm) or now
default =
required = 1
displayCondition {
1 {
#less/before/greater/after/equals/regexp/userfunc
rule = equals
conditionField = allday
value = 0
message = TEXT
message {
dataWrap = false
}
}
}
}
endtime {
user =
group =
public = 1
default =
required = 1
displayCondition {
1 {
#less/before/greater/after/equals/regexp/userfunc
rule = equals
conditionField = allday
value = 0
message = TEXT
message {
dataWrap = false
}
}
}
}
start {
constrain {
1 {
#less/before/greater/after/equals/regexp/userfunc
rule = before|equals
field = end
message = TEXT
message {
dataWrap = <span class="constrain">%%%CONSTRAIN_START_BEFORE_END%%%</span>
}
}
2 {
#less/before/greater/after/equals/regexp/userfunc
rule = after
field = now
message = TEXT
message {
dataWrap = <span class="constrain">%%%IS_IN_PAST%%%</span>
}
}
}
}
end {
constrain {
1 {
#less/before/greater/after/equals/regexp/userfunc
rule = after|equals
field = start
message = TEXT
message {
dataWrap = <span class="constrain">%%%CONSTRAIN_END_AFTER_START%%%</span>
}
}
2 {
#less/before/greater/after/equals/regexp/userfunc
rule = after
field = now
message = TEXT
message {
dataWrap = <span class="constrain">%%%IS_IN_PAST%%%</span>
}
}
}
}
allday {
user =
group =
public = 1
default =
required = 0
}
title {
user =
group =
public = 1
default =
required = 1
}
cal_organizer {
user =
group =
public = 1
default =
required = 0
allowedUids =
onlyOwn =
}
organizer {
user =
group =
public = 1
default =
required = 0
allowedUids =
}
cal_location {
user =
group =
public = 1
default =
required = 0
allowedUids =
onlyOwn =
}
location {
user =
group =
public = 1
default =
required = 0
allowedUids =
}
teaser {
user =
group =
public = 0
default =
required = 0
}
description {
user =
group =
public = 1
default =
required = 0
}
recurring {
user =
group =
public = 0
default =
required = 0
displayCondition {
1 {
#less/before/greater/after/equals/regexp/userfunc
rule = equals
conditionField = eventType
value = 0
message = TEXT
message {
dataWrap = false
}
}
}
}
notify {
user =
group =
public = 0
defaultUser =
required = 0
displayCondition {
1 {
#less/before/greater/after/equals/regexp/userfunc
rule = equals
conditionField = eventType
value = 0
message = TEXT
message {
dataWrap = false
}
}
}
}
shared {
user =
group =
public = 0
defaultUser =
defaultGroup =
required = 0
displayCondition {
1 {
#less/before/greater/after/equals/regexp/userfunc
rule = equals
conditionField = eventType
value = 0
message = TEXT
message {
dataWrap = false
}
}
}
}
exception {
user =
group =
public = 0
default =
required = 0
displayCondition {
1 {
#less/before/greater/after/equals/regexp/userfunc
rule = equals
conditionField = eventType
value = 0
message = TEXT
message {
dataWrap = false
}
}
}
}
image {
user =
group =
public = 0
default =
required = 0
}
image_caption {
user =
group =
public = 0
default =
required = 0
}
image_title {
user =
group =
public = 0
default =
required = 0
}
image_alt {
user =
group =
public = 0
default =
required = 0
}
attachment {
user =
group =
public = 0
default =
required = 0
}
attachment_caption {
user =
group =
public = 0
default =
required = 0
}
attendee {
user =
group =
public = 1
default =
required = 0
allowedUids =
displayCondition {
1 {
#less/before/greater/after/equals/regexp/userfunc
rule = equals
conditionField = eventType
value = 3
message = TEXT
message {
dataWrap = false
}
}
}
}
attendee_external {
user =
group =
public = 1
default =
required = 0
allowedUids =
displayCondition {
1 {
#less/before/greater/after/equals/regexp/userfunc
rule = equals
conditionField = eventType
value = 3
message = TEXT
message {
dataWrap = false
}
}
}
}
sendout_invitation {
user =
group =
public = 1
default = 0
required = 0
displayCondition {
1 {
#less/before/greater/after/equals/regexp/userfunc
rule = equals
conditionField = eventType
value = 3
message = TEXT
message {
dataWrap = false
}
}
}
}
}
}
exceptionEvent{
# @description Page to save frontend-created exception events to.
saveExceptionEventToPid = {$plugin.tx_cal_controller.rights.defaultSavePid}
# @description Comma separated list of all users and groups that are allowed to create exception events.
user =
group =
# @description 1 if public user should be allowed to create exception events. default 0
public = 0
# @description Comma separated list of fields, that are not shipped with the standard cal extension, but are to be saved inside the tx_cal_exceptionevent record
additionalFields =
# @description Comma separated list of all users and groups that should have all exception event
# fields enabled.
enableAllFields {
user =
group =
public = 0
}
fields {
# this view is to be implemented
}
}
location {
# @description Page to save frontend-created locations to.
saveLocationToPid = {$plugin.tx_cal_controller.rights.defaultSavePid}
# @description Comma separated list of all users and groups that are allowed to create location.
user =
group =
# @description 1 if public user should be allowed to create location. default 0
public = 0
# @description Adds the frontend user who created an location to the shared field.
addFeUserToShared = 0
# @description Adds the frontend user group to the shared field.
addFeGroupToShared = 0
# @description Comma separated list of frontend user groups, which are to be ignored and NOT to be added as shared
addFeGroupToShared.ignore =
# @description Comma separated list of fields, that are not shipped with the standard cal extension, but are to be saved inside the tx_cal_location record
additionalFields =
# @description Comma separated list of all users and groups that should have all location
# fields enabled.
enableAllFields {
user =
group =
public = 0
}
# @description Comma separated list of all users and groups that should have a specific location
# field enabled.
fields {
hidden {
user =
group =
public = 0
default = 0
required = 0
}
name {
user =
group =
public = 0
default =
required = 1
}
description {
user =
group =
public = 0
default =
required = 0
}
street {
user =
group =
public = 0
default =
required = 0
}
zip {
user =
group =
public = 0
default =
required = 0
}
city {
user =
group =
public = 0
default =
required = 0
}
country {
user =
group =
public = 0
default =
required = 0
}
countryZone {
user =
group =
public = 0
default =
required = 0
}
phone {
user =
group =
public = 0
default =
required = 0
}
fax {
user =
group =
public = 0
default =
required = 0
}
email {
user =
group =
public = 0
default =
required = 0
}
image {
user =
group =
public = 0
default =
required = 0
}
image_caption {
user =
group =
public = 0
default =
required = 0
}
image_title {
user =
group =
public = 0
default =
required = 0
}
image_alt {
user =
group =
public = 0
default =
required = 0
}
link {
user =
group =
public = 0
default =
required = 0
}
shared {
user =
group =
public = 0
defaultUser =
defaultGroup =
required = 0
}
}
}
organizer < plugin.tx_cal_controller.rights.create.location
organizer {
# @description Page to save frontend-created organizers to.
saveOrganizerToPid = {$plugin.tx_cal_controller.rights.defaultSavePid}
}
translation {
user =
group =
}
}
edit {
calendar {
# @description Comma separated list of all users and groups that are allowed to edit calendars.
user =
group =
# @description 1 if public user should be allowed to edit a calendar. default 0
public = 0
# @description Comma separated list of all users and groups that should have all calendar
# fields enabled.
enableAllFields {
user =
group =
public = 0
}
# @description Comma separated list of fields, that are not shipped with the standard cal extension, but are to be saved inside the tx_cal_category record
additionalFields =
# @description Comma separated list of all users and groups that should have a specific calendar
# field enabled.
fields < plugin.tx_cal_controller.rights.create.calendar.fields
# @description Comma separated list of users and groups to be allowed to edit only their own calendar
onlyOwnCalendar {
user =
group =
}
# @description Comma separated list of users and groups to be allowed to edit a public calendar
publicCalendar {
user =
group =
}
}
category {
# @description Comma separated list of all users and groups that are allowed to edit categories.
user =
group =
# @description 1 if public user should be allowed to edit a category. default 0
public = 0
# @description Comma separated list of fields, that are not shipped with the standard cal extension, but are to be saved inside the tx_cal_category record
additionalFields =
# @description Comma separated list of all users and groups that should have all category
# fields enabled.
enableAllFields {
user =
group =
public = 0
}
# @description Comma separated list of all users and groups that should have a specific category
# field enabled.
fields < plugin.tx_cal_controller.rights.create.category.fields
# @description Comma separated list of all users and groups to be able to edit only their own categories
onlyOwnCategory {
user =
group =
}
# @description Comma separated list of all users and groups to be able to edit general categories
generalCategory {
user =
group =
}
# @description Comma separated list of all users and groups to be able to edit public categories
publicCategory {
user =
group =
}
}
event {
# @description Comma separated list of all users and groups that are allowed to edit events.
user =
group =
# @description 1 if public user should be allowed to edit events. default 0
public = 0
# @description Comma separated list of fields, that are not shipped with the standard cal extension, but are to be saved inside the tx_cal_event record
additionalFields =
# @description Offset in minutes. The user is allowed to edit the event until timeOffset minutes before it takes place
timeOffset = 0
# @description Comma separated list of all users and groups that should have all event
# fields enabled.
enableAllFields {
user =
group =
public = 0
}
# @description Comma separated list of all users and groups that should have a specific event
# field enabled.
fields < plugin.tx_cal_controller.rights.create.event.fields
# @description Replaces the standard textarea with the installed rte.
enableRTE = 1
# @description Comma separated list of all users and groups that are allowed to edit only their own events.
onlyOwnEvents {
user =
group =
}
addFeUserToShared = 0
addFeGroupToShared = 0
addFeGroupToShared.ignore =
# @description Comma separated list of all users and groups that are allowed to edit events after they have started.
startedEvents {
user =
group =
public = 0
}
}
exceptionEvent{
# @description Comma separated list of all users and groups that are allowed to edit exception events.
user =
group =
# @description 1 if public user should be allowed to edit exception events. default 0
public = 0
# @description Comma separated list of fields, that are not shipped with the standard cal extension, but are to be saved inside the tx_cal_exceptionevent record
additionalFields =
# @description Comma separated list of all users and groups that should have all exception event
# fields enabled.
enableAllFields {
user =
group =
public = 0
}
}
location {
# @description Comma separated list of all users and groups that are allowed to edit a location.
user =
group =
# @description 1 if public user should be allowed to edit a location. default 0
public = 0
addFeUserToShared = 0
addFeGroupToShared = 0
addFeGroupToShared.ignore =
# @description Comma separated list of all users and groups that are allowed to edit only their own locations.
onlyOwnLocations {
user =
group =
}
# @description Comma separated list of fields, that are not shipped with the standard cal extension, but are to be saved inside the tx_cal_location record
additionalFields =
# @description Comma separated list of all users and groups that should have all location
# fields enabled.
enableAllFields {
user =
group =
public = 0
}
# @description Comma separated list of all users and groups that should have a specific location
# field enabled.
fields < plugin.tx_cal_controller.rights.create.location.fields
}
organizer {
# @description Comma separated list of all users and groups that are allowed to edit an organizer.
user =
group =
# @description 1 if public user should be allowed to edit an organizer. default 0
public = 0
addFeUserToShared = 0
addFeGroupToShared = 0
addFeGroupToShared.ignore =
# @description Comma separated list of all users and groups that are allowed to edit only their own organizers.
onlyOwnOrganizers {
user =
group =
}
# @description Comma separated list of fields, that are not shipped with the standard cal extension, but are to be saved inside the tx_cal_organizer record
additionalFields =
# @description Comma separated list of all users and groups that should have all organizer
# fields enabled.
enableAllFields {
user =
group =
public = 0
}
# @description Comma separated list of all users and groups that should have a specific organizer
# field enabled.
fields < plugin.tx_cal_controller.rights.create.organizer.fields
}
}
delete {
calendar {
# @description Comma separated list of all users and groups that are allowed to delete calendars.
user =
group =
# @description 1 if public user should be allowed to delete a calendar. default 0
public = 0
# @description Comma separated list of all users and groups to be allowed to delete only their own calendar
onlyOwnCalendar {
user =
group =
}
# @description Comma separated list of all users and groups to be allowed to delete a public calendar
publicCalendar {
user =
group =
}
}
category {
# @description Comma separated list of all users and groups that are allowed to delete categories.
user =
group =
# @description 1 if public user should be allowed to delete a category. default 0
public = 0
# @description Comma separated list of all users and groups to be able to delete only their own categories
onlyOwnCategory {
user =
group =
}
# @description Comma separated list of all users and groups to be able to delete general categories
generalCategory {
user =
group =
}
}
event {
# @description Comma separated list of all users and groups that are allowed to delete events.
user =
group =
# @description 1 if public user should be allowed to delete an event. default 0
public = 0
# @description Comma separated list of all users and groups that are allowed to delete only their own events.
onlyOwnEvents {
user =
group =
}
# @description Comma separated list of all users and groups that are allowed to delete events that have already started.
startedEvents {
user =
group =
}
# @description Offset in minutes. The user is allowed to delete the event until timeOffset minutes before it takes place
timeOffset = 0
}
exceptionEvent{
# @description Comma separated list of all users and groups that are allowed to delete exception events.
user =
group =
# @description 1 if public user should be allowed to delete an exception event. default 0
public = 0
}
location {
# @description Comma separated list of all users and groups that are allowed to delete a location.
user =
group =
# @description 1 if public user should be allowed to delete a location. default 0
public = 0
# @description Comma separated list of all users and groups that are allowed to delete only their own locations.
onlyOwnLocations {
user =
group =
}
}
organizer < plugin.tx_cal_controller.rights.delete.location
organizer {
# @description Comma separated list of all users and groups that are allowed to delete only their own organizers.
onlyOwnOrganizer {
user =
group =
}
}
}
}
}
Danke für eure Hilfe
LG