Upgrade
If you upgrade/update EXT:events2 to a newer version, please read this section carefully!
Update to Version 11.1.0
Mail security scanners and link previews (e.g. Microsoft Safe Links) open the links of a mail automatically. Before this version, the activation link of the notification mail activated the event with a simple GET request. Further, every owner of an event was able to activate his own event and bypass the moderation.
The activation link opens the new action confirm of the
Management plugin now. It shows a summary of the event and a button, which
activates the event via POST. The links are signed with a
moderation. confirm and activate are allowed with a
valid moderation or for backend administrators only. The token signs
the event UID and stays valid until the event was deleted.
Activation links of mails sent before this update do not contain a
moderation. They are denied, unless they are opened by a backend
administrator logged in into the backend.
Overridden mail templates
If you have overridden one of these templates, please change the
activation link to the action confirm and add the argument
moderation:
Resources/Private/Templates/Management/Create.htmlResources/Private/Templates/Management/Update.htmlResources/Private/ Form Framework/ Templates/ Finishers/ Email/ Default. html
In Create. and Update. the controller assigns the
variable moderation:
<f:link.action pageUid="{settings.pidOfManagementPage}"
action="confirmActivation"
controller="Management"
absolute="1"
arguments="{event: event, moderationToken: moderationToken}">
Datensatz freischalten
</f:link.action>
The mail template of the EXT:form finisher has no controller. Create the token with the new ModerationTokenViewHelper:
{namespace e2=JWeiland\Events2\ViewHelpers}
<f:variable name="event">{finisherVariableProvider.SaveEvent.insertedUids.tx_events2_domain_model_event}</f:variable>
<f:variable name="moderationToken">{e2:moderationToken(event: event)}</f:variable>
<f:link.action pageUid="{pidOfManagementPage}"
action="confirmActivation"
controller="Management"
extensionName="Events2"
pluginName="Management"
absolute="1"
arguments="{event: event, moderationToken: moderationToken}">
Datensatz freischalten
</f:link.action>
If you have overridden the template paths of the Management plugin, please
copy the new template Management/, too.
Route enhancer
If you have configured a route for Management::, please add a
route for Management::, too. The moderation is
added as query parameter:
-
routePath: '/event/m/c/{event_title}'
_controller: 'Management::confirmActivation'
_arguments:
event_title: event
Update to Version 11.0.0
This version contains breaking changes. The images of the event form of the Management plugin are uploaded with the file upload handling of Extbase now. The own type converter for uploads has been removed. Please go through all steps below, if you use the Extbase based event form of the Management plugin or have extended the event model.
The form based on EXT:form (site setting events2. with
New) is not affected by this change.
New limits for uploaded images
The image upload of the event form accepts:
- up to 5 images per event,
- up to 4 MB per image,
- files with the extensions
gif,jpg,jpegandpngonly.
Before, all file extensions of
$GLOBALS were allowed and
there was no limit for the file size. Images violating these limits are
rejected with a validation error of the form.
The names of uploaded files get a random suffix. Deleting an image in the form deletes the file, too.
New site setting for the upload folder
The folder of the uploaded images can be configured with the new site
setting events2. now. It is mapped to the TypoScript
setting settings.new.uploadFolder.
The default value 1: keeps the former folder.
The folder is created, if it does not exist.
Template overrides of FormFields.html
If you have overridden Partials/ in
your site package, please compare it with the original file:
- The section
Uploadand its five indexed upload fieldsImage eventto[images] [0] eventhave been removed.[images] [4] -
Use one upload field for all images:
<f:form.upload property="images" multiple="1"/>Copied! -
Render a delete checkbox for each existing image:
<f:for each="{event.images}" as="image"> <f:form.uploadDeleteCheckbox property="images" fileReference="{image}"/> </f:for>Copied! - The form needs the attribute
enctype="multipart/. The original templatesform- data" Templates/andManagement/ New. html Templates/already have it.Management/ Edit. html
Changed API of the event model
Event:: returns an
Object instead of an array now. Index access
like {event. in Fluid templates does not work anymore. Use
{event. or iterate over the images with <f:.
Event:: has been removed. Use
Event:: instead. The new methods
Event:: and Event:: add or remove a
single image.
Rights checkbox of checkfaluploads
The templates of events2 do not contain a rights checkbox for the
uploaded images. If jweiland/ is installed, events2
adds its validator to the image uploads of the actions create and
update of the Management plugin. Version 6.x of checkfaluploads is
suggested, as the validator needs its API for the file upload handling
of Extbase.
In this case add the rights checkbox and the rights message to your
template override of Partials/:
<html xmlns:cfu="http://typo3.org/ns/JWeiland/Checkfaluploads/ViewHelpers"
data-namespace-typo3-fluid="true">
<f:form.checkbox property="images.rights" id="imageRights" value="1"/>
<label for="imageRights"><cfu:imageRightsMessage/></label>
The checkbox has to be submitted with the name
tx_. Without this field every
image upload stops with exception 1788270392. If the checkbox is not
checked, the form shows a validation error. See the
developer manual of checkfaluploads
for details.
Changed labels
The labels error., error., error.
and rights have been removed from
Resources/Private/Language/locallang.xlf. For the rights message
use the ViewHelper <cfu: of checkfaluploads.
If you have overridden these labels with _LOCAL_, you can remove
these overrides.
The new label delete is used for the delete checkbox of an image.
The text of csh has been updated to the new limits.
Removed PHP classes and event listeners
- The type converter
JWeilandhas been removed.Events2Property Type Converter Upload Multiple Files Converter - The PSR-14 event
JWeilandhas been removed without replacement. To change the upload configuration of the images, register an event listener forEvents2Event Post Check File Reference Event JWeilandand modify the file upload configuration of the argumentEvents2Event Pre Process Controller Action Event event. - The event listeners
Assign(identifierMedia Type Converter Event Listener events2/) andassign Media Type Converter Delete(identifierUploaded Files On Error Event Listener events2/) have been removed. If you have ordered your own event listeners withdelete Uploaded Files On Error beforeorafterrelative to these identifiers, please update them. -
Two new event listeners for
Preare registered for the actionsProcess Controller Action Event createandupdateof the Management plugin. Use their identifiers to order your own event listeners:events2/apply- upload- folder - Sets the upload folder of the images to the value of
settings..new. upload Folder events2/check- fal- uploads - Adds the validator of checkfaluploads to the image uploads, if checkfaluploads is installed.
Flush caches
As PHP classes, templates and TypoScript have changed, please flush all caches in Admin Tools > Maintenance after the update.
Update to Version 10.2.4
Due to an issue in the DayRecordService, records in the day table that use
enable fields, such as hidden, starttime, or endtime, were not removed
when new day records were generated for a given event. As a result, the day
table grows significantly with each execution of the Re-
scheduler task.
After updating to version 10.2.4, please run the
TYPO3 command events2:.
If you are not familiar with the CLI, you can alternatively truncate
the tx_ table and then run
the Re- scheduler task again.
Update to Version 10.0.0
Because of the new column def_ in tx_
you will get various duplicate event records in your list views. Please
execute the command events2: after the update to fix this issue!
Update to Version 9.1.9
- We have moved TypoScript setting
settings.selectable Categories For New Events - into
settings.. If you have defined that setting in management plugin please execute the events2 upgrade wizard.new. selectable Categories For New Events
Update to Version 9.0.8
Because of missing uniqueness while generating path segments for imported event records we had to update the constructor arguments of GeneratePathSegmentEvent. First argument has be be array of parameters we get from SlugHelper->generate and second argument is the SlugHelper itself.
Update to Version 9.0.4
We have marked the FeUser ViewHelper as deprecated. As a replacement for
access restrictions there is a new Access catching
invalid requests. You should update your own templates accordingly.
Because of an "edit" and "activate" linking problem in information mail, we
had to store the event non-hidden in database first and had to hide the event
after the mailing in a second step. Else the event slug can not be added to
route enhancer. Please make sure that your own modifications
to plugin. configuration is still
working.
There is a new Persisted available to allow generating
slugs to hidden event records. Needed for info mails.
Events2Management:
type: Extbase
extension: Events2
plugin: Management
routes:
- routePath: '/events/m/lme'
_controller: 'Management::listMyEvents'
- routePath: '/events/m/p'
_controller: 'Management::perform'
-
routePath: '/event/m/p/{event_title}'
_controller: 'Management::perform'
_arguments:
event_title: event
-
routePath: '/event/m/a/{event_title}'
_controller: 'Management::activate'
_arguments:
event_title: event
defaultController: 'Management::listMyEvents'
aspects:
event_title:
type: PersistedHiddenAliasMapper
tableName: tx_events2_domain_model_event
routeFieldName: path_segment
We render our own template for error which results in much nicer
flash messages output. Please be prepared to override them accordingly.
Update to Version 9.0.0
This version is NOT compatible with TYPO3 10 and TYPO3 11 anymore.
We have upper case first char of all fluid sections <f:.
Please make sure to adopt that in your extending templates.
Update to Version 8.3.2
There is an UpgradeWizard to convert s in FlexForms to s, but
with each update of an events2 plugin s was written to DB again. We
have updated that page name to s in our FlexForms, now. Please execute the
UpgradeWizard again.
Upgrade to Version 8.0.0
This version is NOT compatible with PHP versions lower than 7.4!
We have updated over 10.000 lines of code. Please click the flush cache button in installtool.
New Plugins
As switchable are deprecated since TYPO3 11 we have migrated them to individual plugins.
Please execute UpgradeWizard events2Move to migrate existing plugins. Please backup your project
before executing this Wizard!
With this change we have migrated all list*Actions into one listAction. Please have a look into our templates and add the missing conditions to your templates.
We have renamed EventController to ManagementController. So please rename the templates accordingly.
We have split the SearchController into SearchForm- and SearchResultController. So please rename the templates accordingly.
Fluid Widget replacement
Fluid widget functionality was completely removed in TYPO3 11.
Instead of ICal please use link to action of our new ICalController:
<f:link.action action="download" controller="ICal" target="_blank" arguments="{dayUid: day.uid}">
{f:translate(key: 'export')}
</f:link.action>
Instead of Poi in Location/Show.html please migrate to:
<f:render partial="Maps2/PoiCollection"
section="showMap"
arguments="{poiCollections: {0: location.txMaps2Uid}, override: {settings: {mapWidth: '100%', mapHeight: '300', zoom: '14'}}}" />
and check, if path to EXT:maps2 partial still matches your needs:
plugin.tx_events2.view.partialRootPaths.2 = EXT:maps2/Resources/Private/Partials/
jquery removed
We have removed the use of jquery and migrated all code to VanillaJS. So please check
page. and page. if they are matching the needs of your project.
Update to Version 7.1.0
As f:widget.paginate is deprecated and POST requests are not allowed anymore in this widget, we have migrated the f:widget.paginate widget to new TYPO3 Pagination API.
Please remove the f:widget.paginate from Templates and insert this code:
<f:render partial="Component/Pagination"
arguments="{pagination: pagination, paginator: paginator, actionName: actionName}" />
Upgrade to Version 7.0.0
Nearly all Controller Actions contains a call to the new TYPO3 EventDispatcher now. That way we have moved a lot of logic of the event controllers into EventListeners. All Extbase SignalSlot have been removed.
The Action list was moved from event controller into day controller. Please move
your own List template from Event into Day folder and update controller name
in Search/:
<input type="hidden" name="tx_
All deprecated methods and version_compare lines have been removed.
edit action is defined as uncached in ext_localconf.php now.
You have to remove existing Re-Generate tasks from scheduler and create them again. That's because of changed contructor arguments.
Update to Version 6.3.0
It is now possible to assign multiple organizers to an event record. That's why we have added a new MM table
and a new column organizers which has to be created by Analyze database button in Installtool. Please
execute events2 upgrade wizard to migrate all current relations into this new table. If UpgradeWizard was
executed successfully you can remove the old organizer column.
Please update following parts in your templates:
<f:if condition="{e2:feUser(field: 'tx_events2_organizer')} == {event.organizer.uid}">
to
<f:if condition="{event.isCurrentUserAllowedOrganizer}">
We have changed the column detail_ of event table to detail_. Please execute
UpgradeWizard to move all data into this new column. Old calls to getDetailInformations are still possible but
deprecated and removed with events2 7.0.0.
In XSD file for XML import we have changed organizer to organizers. Please update your XML file generation
or load an old XSD file in Extension Settings of Installtool. But with 7.0.0 we will not support the old
organizer property while XML import anymore.
Update to Version 6.2.6
We have changed the keys for various used hooks from incremented numbered to string based keys in ext_localconf.php. As a developer you should check, if your own implementation is still working.
Update to Version 6.2.4
We have changed some method arguments, please flush cache in InstallTool
Update to Version 6.1.1
We have changed data type of country to INT in DB. Please start compare database in INstalltool.
Upgrade to Version 6.0.0
With events2 6.0.0 we have removed TYPO3 8 compatibility and add TYPO3 10 compatibility. We have not added any new features.
Because of incompatibility we have created a new pageTitleProvider as replacement for pageTitleUserfunc.
Upgrade to Version 5.0.0
With this release we have implemented a better multilingual support. We are not done, but as long as DayGenerator still has problems with languages we have marked a lot of fields in translated events as readonly.
If you use events2 with one language only, there is no problem to upgrade to 5.0.0.
Update to Version 4.1.1
With version 4.1.0 we have added the path_segment for slugs in event records, but first with version 4.1.1 we have added the Updater for this field. Please visit InstallTool and execute the updater for Slugs in event records.
Upgrade to Version 4.0.0
If you don't use the event2 API or you don't use your own XmlImporter an Update shouldn't be a problem for you.
We have modified find to find in AbstractController. With the new argument
you can now select hidden records by any property you want.
We have added a lot of strict_types. Please check your extension code accordingly, if you have modified events2.
We have added Task object as second argument to constructor of AbstractImporter. Therefor we have removed
all arguments of importer method of XmlImporter.
Method initialize is not required by ImporterInterface and will not be called anymore. Please move initialization
process into Constructor directly.
Update to Version 3.7.0
New Feature: We have added 3 new getters to Time object:
- getTimeEntryAsDateTime
- getTimeBeginAsDateTime
- getTimeEndAsDateTime
These are very helpful as you now can format them with f:format.date() VH
Update to Version 3.3.1
With version 3.3.1 we have added a new column same_ to day table. It helps us to GROUP BY days with
multiple time records for one day, if mergeEventsAtSameDate is set in plugin.
Please update DB in Installtool and start scheduler task to re-generate all day records.
Update to Version 3.2.0
With version 3.2.0 we have completely rewritten DayRepository to work with Doctrine/Core QueryBuilder now. We have added functional tests to be sure to have same results as in previous versions.
We have renamed mergeEvents checkbox in FlexForm to mergeRecurringEvents. Maybe you have to reactivate that checkbox.
In previous versions we have grouped events in ListLatest view automatically for you. Now you have to manual activate mergeRecurringEvents to group them.
We have moved static TypoScript to another location. Please use update wizard in ExtensionManager to update paths.
We have removed mergeEvents option from ExtensionManager. If you have set this option please re-create your records with CLI or scheduler task.
Update to Version 3.1.0
With version 3.1.0 we have made a little but breaking change:
In earlier versions you may have done:
<f:form.textarea class="form-control addRemainingCharsCheck" id="teaser" property="teaser" rows="5" cols="50" />
This will not work anymore, as it would be very hard for integrator to place the container for remaining chars correctly. Please change this part to:
<div class="form-group row">
<div class="col-sm-4"></div>
<div class="col-sm-8">
<span class="remainingChars" data-id="teaser"></span>
</div>
</div>
Use data-id to relate it to a textarea id-attribute.
Upgrade to Version 3.0.0
- We have removed GetEventDates VH and implemented a completely new way to get future event dates.
- We have removed MicroStart VH
- We have removed MicroStop VH
- We have removed Sort VH, as sorting in VH is always a bad idea.
In previous versions we had the problem, that an added day as exception will never be of type Day. It is of type Exception with different properties then a Day, which made us many headaches in Fluid-Templates. In GetDateTime VH we had streamlined Day and Exception records into an array which contains all needed information. You can't control and you may not understand how this array was build. With version 2.4.0 we have solved this problem and simplified Fluid template a lot. Instead of modifying the DB tables and models we have reduced some method-calls down to the DateTime representation of Day and Exception records:
- Renamed EventService::getSortedTimesForDay to EventService::getSortedTimesForDate * Property $day changed from type Day to DateTime
- Renamed EventService::getDifferentTimesForDay to EventService::getDifferentTimesForDate * Property $day changed from type Day to DateTime
- Renamed EventService::getTimesForDay to EventService::getTimesForDate * Property $day changed from type Day to DateTime
- Renamed EventService::getExceptionsForDay to EventService::getExceptionsForDate * Property $day changed from type Day to DateTime
So, please check your own extensions, if you make use of these methods. To solve the problem from above, we have implemented two new ViewHelpers. Please have a look into our new templates and update your own templates to the new structure:
- New VH: GetExceptionsFromEventForSpecificDate
- New VH: IsDateMarkedAsCanceled
Event property download_ can now collect more then one link. Please update DB in Installtool and clear
system caches.
Now you can create events with a recurring of one or more months.
We have removed all methods to get time records for an event from DayRelationService as we have all these methods in EventService already.
Update to Version 2.4.0
Version 2.4.0 is now TYPO3 9 compatible. We also have removed compatibility to TYPO3 6 and 7.
Update to Version 2.3.0
With version 2.3.0 we have rewritten the frontend Events2.js completely. Now it it much more readable and it prevents executing JavaScript, if it is not valid for current view. That's why we have some changes in our templates:
- Remove all siteId variables. Please use {data.pid} instead
- Remove all jsSearchVariables. They are now all available in just jsVariables
- All jsVariables are removed from Templates and Partials and has to be in all Layout file now
- The <div> for remainingChars has been removed as it will be created dynamically with JS now
- CSS class addRemainingCharsCheck activates max chars feature for textareas automatically
- The <span> for locationStatus has been removed as it will be created dynamically with JS now
- Change CSS class powermail_input to form-control in Event/FormFields Partial
- Move records for selectboxes in search plugin from {data} to {selectorData}
- Make data with current tt_content record available in jsVariables, too.
- We have added two more Layouts. Please adjust the new path in your templates.
We have removed TypoLinkCodecService as it was only needed by our own TypoLink VH and is part of TYPO3 since TYPO3 7.*.
Organizer and Location are not required anymore by default. If you still need them required go into ExtensionManager and set them as required. This change results into some further changes to our templates:
- Add if to render section "location" only if a location is available
- Add if to render section "googleRoute" only if a location is available
- Add if to render section "organizer" only if a organizer is available
- Add if to location to prevent rendering footer for each event in list
- Move <p>-Tag, for editing your own records in FE, inside of the if
- Add if to organizer and location in Create.html
- Add if to organizer and location in Update.html
We have moved all email settings in ExtConf to new tab "Email"
EXT maps2 is not a hard-coded dependency to events2 anymore, but we still suggest it in ext_emconf.php.
Upgrade to Version 2.0.0
Version 2.0.0 will come with some new cols and we have removed some cols. So please be careful while comparing database with TCA definition after upgrading.
Important
Please do not delete cols in InstallTool after installing the new version! Only add the new fields, than go into Extensionmanager, select events2 and start the upgrade script. Delete the old cols in InstallTool only, if the upgrade script symbol will not appear in Extensionmanager anymore.
We have removed ShowEventDatesViewHelper, because it was sometimes too hard to change that template. So we have moved that widget into a normal ViewHelper. Please use GetEventDatesViewHelper instead, you can find an example in Partials/Event/Properties.html.
In case of our new database structure we have removed our e2:widget.paginate ViewHelper. Please update all templates to use the original f:widget.paginate ViewHelper of fluid and maybe remove the maxRecords attribute.
The labels of the show action selectbox in Plugin (switchableControllerActions) has changed. We have added the new action showByDate for DayController. So you have to open each plugin and set show action again.
After all these changes you have to re-create all day records. The easiest way to do so is: Create scheduler task of type "Create/Update Days" if not already exists. Execute that task.
We have removed our own TypoLink ViewHelper as it is not needed anymore since TYPO3 7.6. Please change all e2:link.typolink VHs of your templates into f:link.typolink.