Commit graph

164 commits

Author SHA1 Message Date
Dirk Koritnik
2450f5c6b7 Switch to Storage Object for images 2021-09-07 07:52:27 +02:00
cbbe56775e Allow to add link for canceled dates
E.g. allow users to get info about refunds.

Relates: #8574
2021-09-07 07:52:26 +02:00
10b4c34fe6 Allow to define a new date if current is postponed
Relates: #8092
2021-09-07 07:52:25 +02:00
c65ae5023f Allow integrator to set start or end for date via settings
Respect start and end when creating demand from settings.
That way integrator can configure it via TypoScript, or provide an
FlexForm.

Also the query was adjusted. It now respects a single value and doesn't
need start and end.
That way upcoming events can be created.

Relates: #8581
2021-09-07 07:52:25 +02:00
cf2b571fda Support manual sorting in foreign language
Given: Website uses copy / free mode of localization.
       and Editor selects specific events to display.
Then:  Those events should be displayed as selected.

Before this change the sorting was applied on uid of objects,
which is the uid of default lanugage record. But editors might select
localized uids. Therefore a fallback is added in case no object was
found.

Relates: #8557
2021-09-07 07:52:25 +02:00
Dirk Koritnik
4a8abbe344 Add getter and setter for caceled 2021-09-07 07:52:24 +02:00
4e2f191030 Fix broken demand support for categories
This was broken since changes during update.
2021-09-07 07:52:22 +02:00
Dirk Koritnik
ce9a1e17e5 Add subtitle filed to event 2021-09-07 07:52:21 +02:00
ca7340782b Allow an date to be marked as canceled
That has no effect, the info is just available from model.
This can be used to display a canceled date in a different way, or
render a notice.

Relates: #8092
2021-09-07 07:52:19 +02:00
f111884299 Refactor and streamline event code
Make controller smaller, remove unused code.
Move creation of demand object into its own factory.
Reduce npath complexity in repository and move parts into named methods.
2021-09-07 07:52:18 +02:00
17bd83eedf Provide new "Event selected" plugin
Allow editors to select specific events to display.
Therefore add new necessary demand and setting for events and respect
them within repository.

Relates: #8092
2021-09-07 07:52:18 +02:00
8da7284e1f Allow f:debug for event models
Private properties lead to an exception when using f:debug in Fluid.

Relates: #8092
2021-09-07 07:52:18 +02:00
43d8a1c0d6 Add partner
Add new record type partner.
This can be something like a media partner or something else.

Allow an event to have zero or more partner.
Add necessary files and models with relations.

Relates: #8092
2021-09-07 07:52:17 +02:00
38b4844a9d Add pages to events
Allow editor to reference TYPO3 page records from events.
E.g. used to provide further internal information links.

Also those pages are resolved via DataProcessing.
That allows integrators to be 100% flexible to resolve those page info.
By default a menu is generated and media is resolved.

Also validation is ignored, as this improves performance and allows to
use the new class as injected property without validation fails.
Models are not managed via frontend and therefore don't need validation.

Relates: #8092
2021-09-07 07:52:17 +02:00
acc0c2bdc5 Manually migrate cascade annotation
Relates: #8092
2021-09-07 07:52:17 +02:00
0c58be43ff Manual CGL adjustments
Not covered by PSR / phpcs

Relates: #8092
2021-09-07 07:52:15 +02:00
b7adb97cbc Adjust code and config to pass php code sniffer
Relates: #8092
2021-09-07 07:51:36 +02:00
59272afffd Add php code sniffer to follow PSR-12
Also apply ./vendor/bin/phpcbf to auto migrate what is possible.

Relates: #8092
2021-09-07 07:51:36 +02:00
b829a25738 Auto migrate code base to TYPO3 v10
Using:

    ./vendor/bin/typo3-rector process Classes Configuration ext_*

Relates: #8092
2021-09-07 07:50:09 +02:00
Dirk Koritnik
a5cef0ac8f Merge branch 'feature/category-filter' into 'master'
Add categories filter

See merge request typo3/events!7
2021-08-12 09:56:43 +00:00
52f1fe8dc1 Add categories filter
Relates: #9171
2021-07-14 11:07:44 +02:00
e82df315a7 Apply search word search to categories titles 2021-07-13 14:04:56 +02:00
a332bffc25 Add synonym feature for date search
Allow configuration of synonyms via TypoScript.
This is taken into account when searching dates via submitted demand.

The configuration looks like the following:

    plugin.tx_events {
        settings {
            synonyms {
                10 {
                    word = Stadtführung
                    synonyms = Tour, Stadtführungen, Führung
                }
            }
        }
    }

The 10, 11, … is necessary as umlauts won't work as keys.
So `synonyms.Stadtführung = Tour, Stadtführungen` will not work.

Relates: #9158
2021-07-13 13:13:15 +02:00
Dirk Koritnik
fa507c1351 Fix ticket import 2020-10-01 09:51:15 +02:00
Dirk Koritnik
5e272178a5 Modify ticket link import 2020-10-01 09:45:32 +02:00
Dirk Koritnik
61cd617130 Fix lang uid var name 2020-10-01 08:56:44 +02:00
Dirk Koritnik
9464ad6018 Add lanuage handling 2020-10-01 08:34:13 +02:00
Dirk
f2973a4a99 Merge branch 'dev' of ssh://gitlab.werkraum-media.de:21512/typo3/events into dev 2020-08-19 11:30:21 +02:00
Dirk
3e643176a3 Add social links 2020-08-19 11:30:13 +02:00
Dirk
fbf9d55985 Remove strtolower 2020-08-18 15:22:34 +02:00
Dirk
e490feae93 Fix filename handling 2020-08-18 14:27:44 +02:00
Dirk
552986b2aa Merge 2020-08-17 14:26:38 +02:00
Dirk
3f55a189eb Add location name 2020-08-17 14:21:03 +02:00
Dirk
c95a84d52d Import price info 2020-03-16 14:06:03 +01:00
Dirk
93545bd171 Change address import 2020-03-16 13:52:58 +01:00
Dirk
b5d89ce7c4 Make untilDate to requirement 2020-03-16 12:10:01 +01:00
Dirk
d299990765 Add rest mode to destination data import 2020-02-19 09:08:15 +01:00
Dirk
c150158a17 Fix date demand 2019-12-11 15:13:59 +01:00
Dirk
e388ece205 Fix date constraint for same days 2019-12-11 09:15:07 +01:00
Dirk
38a76b26f9 Add show plugin, prepare consider date 2019-11-13 10:46:21 +01:00
Dirk
2426267567 Refactoring 2019-11-11 12:43:50 +01:00
Dirk
890dcd4b35 Make default image configurable 2019-11-07 14:16:28 +01:00
Dirk
b632a32fe7 Remove cat parent uid from arguments 2019-11-07 10:25:09 +01:00
Dirk
bd4409fd76 [TASK] Fix DateTime Issue 2019-10-11 15:12:07 +02:00
Dirk
bc5801452b [FIX] Fix crazy die error 2019-10-09 15:03:58 +02:00
Dirk
9a10874963 [TASK] Switch to method POST 2019-09-27 07:42:45 +02:00
Dirk
525ebf0f8e [TASK] Remove lat lng from set address 2019-09-23 15:43:15 +02:00
Dirk
3d4f9d5088 [TASK] Seperate lat lng in function 2019-09-23 15:41:41 +02:00
208c0cfbfa Refactor code
Split large code base into separate classes.
Use Service as a controller, in order to define tasks to execute.
2019-09-19 12:11:21 +02:00
412b59d77f WIP Remove files
Remove files from sys_file db table and filesystem.
Add this to delete all, in order to delete all matching files.
But also add to past cleanup, to only remove files which do no longer
have relations. This last part was not tested, due to missing testing
environment.
2019-09-19 10:47:37 +02:00
8ed5bd9970 Add command to remove all past dates and events
It will search for all dates within the past and remove them. Afterwards
all events with no dates are searched and removed.

As DataHandler is used for deletion of events, there is already logging
within TYPO3, as well as recursive deletion for sys_file_references.

To speedup for large data sets, deletion of dates is done without
DataHandler.
2019-09-19 09:09:42 +02:00
ca4d7d3a01 Add basic cleanup command
Allows to remove all existing records regarding events.
It will search for all pages providing either organizer or events, and
will delete both types of records.

As DataHandler is used for deletion, there is already logging within
TYPO3, as well as recursive deletion for dates and sys_file_references.

To speedup for large data sets, truncate organizer and dates, as they
don't have recursive deletions, e.g. to sys_file_references. Also add
keys to database.
2019-09-18 18:04:29 +02:00
Dirk
f51017325f Added datepicker 2019-08-14 18:40:04 +02:00
Dirk
f1cbba74c1 Implement date search 2019-08-14 17:22:01 +02:00
Dirk
8821bb4639 Added conditions in iport to prevent errors 2019-08-13 11:52:34 +02:00
Dirk
e9745ebd85 Rename plugin settings 2019-08-13 11:41:41 +02:00
Dirk
662b088daa Refactoring Import Service 2019-08-13 11:17:34 +02:00
Dirk
f6a46012a7 Make Pid of categories configurable 2019-08-13 10:10:00 +02:00
Dirk
7ab18bce50 Removed old ImportCommand 2019-08-13 09:32:46 +02:00
Dirk
f2fcf646f8 Small changes to load file function 2019-08-13 09:12:30 +02:00
Dirk
011c337078 Fix typo3 in variable 2019-08-12 16:12:45 +02:00
Dirk
a16b5d4ef7 Refactored the import command 2019-08-12 15:49:52 +02:00
Dirk
9ebe9a4751 Refactoring Imprt Command 2019-08-12 07:43:37 +02:00
Dirk
9c6539eb28 Refactored EXT dd_events to events, added fields to page type poi 2019-07-18 13:44:19 +02:00