Rename to filtered-eventsexport-bundle
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
# gymnasium-nossen-bundle
|
||||
# filtered-eventsexport-bundle
|
||||
|
||||
Contao 5.7 Bundle für eine gefilterte Eventliste mit PDF-Export.
|
||||
|
||||
## Funktionen
|
||||
|
||||
- Frontend-Modul `gymnasium_eventlist` (Kategorie `events`)
|
||||
- Frontend-Modul `filtered_eventsexport_eventlist` (Kategorie `events`)
|
||||
- Zwei-Spalten-Layout im Frontend (links Filter/Export, rechts Eventliste)
|
||||
- Filter über:
|
||||
- Event-Archive (Checkboxen, Multi-Select)
|
||||
@@ -35,7 +35,7 @@ Das Bundle wird als `path`-Repository eingebunden und im Hauptprojekt per Compos
|
||||
|
||||
Backend-Modultyp:
|
||||
|
||||
- `gefilterte Eventliste` (`gymnasium_eventlist`)
|
||||
- `gefilterte Eventliste` (`filtered_eventsexport_eventlist`)
|
||||
|
||||
Einstellungen:
|
||||
|
||||
@@ -85,7 +85,7 @@ PDF-Inhalt:
|
||||
- `src/Contao/Manager/Plugin.php`
|
||||
- `src/Controller/EventListModuleController.php`
|
||||
- `src/Controller/EventPdfController.php`
|
||||
- `src/DependencyInjection/GymnasiumNossenExtension.php`
|
||||
- `src/DependencyInjection/FilteredEventsExportExtension.php`
|
||||
- `src/Resources/config/routes.yaml`
|
||||
- `src/Resources/contao/config/services.yaml`
|
||||
- `Resources/views/frontend/module_event_list.html.twig`
|
||||
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "gymnasium-nossen/gymnasium-nossen-bundle",
|
||||
"name": "mummert/filtered-eventsexport-bundle",
|
||||
"description": "Contao frontend module with date-range filtered upcoming events for members.",
|
||||
"type": "contao-bundle",
|
||||
"license": "proprietary",
|
||||
@@ -12,11 +12,11 @@
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"GymnasiumNossenBundle\\": "src/"
|
||||
"FilteredEventsExportBundle\\": "src/"
|
||||
}
|
||||
},
|
||||
"extra": {
|
||||
"contao-manager-plugin": "GymnasiumNossenBundle\\Contao\\Manager\\Plugin"
|
||||
"contao-manager-plugin": "FilteredEventsExportBundle\\Contao\\Manager\\Plugin"
|
||||
},
|
||||
"prefer-stable": true
|
||||
}
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
$GLOBALS['FE_MOD']['events']['gymnasium_eventlist'] = GymnasiumNossenBundle\Controller\EventListModuleController::class;
|
||||
$GLOBALS['FE_MOD']['events']['filtered_eventsexport_eventlist'] = FilteredEventsExportBundle\Controller\EventListModuleController::class;
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
$GLOBALS['TL_DCA']['tl_module']['palettes']['gymnasium_eventlist'] = '{title_legend},name,headline,type;{config_legend},cal_calendar;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID';
|
||||
$GLOBALS['TL_DCA']['tl_module']['palettes']['filtered_eventsexport_eventlist'] = '{title_legend},name,headline,type;{config_legend},cal_calendar;{protected_legend:hide},protected;{expert_legend:hide},guests,cssID';
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
$GLOBALS['TL_LANG']['FMD']['gymnasium_eventlist'] = ['gefilterte Eventliste', 'Zeigt zukünftige Termine mit optionalem Datumsbereichs-Filter für Mitglieder.'];
|
||||
$GLOBALS['TL_LANG']['FMD']['filtered_eventsexport_eventlist'] = ['gefilterte Eventliste', 'Zeigt zukünftige Termine mit optionalem Datumsbereichs-Filter für Mitglieder.'];
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
$GLOBALS['TL_LANG']['FMD']['gymnasium_eventlist'] = ['Filtered event list', 'Shows upcoming events with an optional date range filter for members.'];
|
||||
$GLOBALS['TL_LANG']['FMD']['filtered_eventsexport_eventlist'] = ['Filtered event list', 'Shows upcoming events with an optional date range filter for members.'];
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace GymnasiumNossenBundle\Contao\Manager;
|
||||
namespace FilteredEventsExportBundle\Contao\Manager;
|
||||
|
||||
use Contao\CalendarBundle\ContaoCalendarBundle;
|
||||
use Contao\CoreBundle\ContaoCoreBundle;
|
||||
@@ -10,7 +10,7 @@ use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
|
||||
use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
|
||||
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
|
||||
use Contao\ManagerPlugin\Routing\RoutingPluginInterface;
|
||||
use GymnasiumNossenBundle\GymnasiumNossenBundle;
|
||||
use FilteredEventsExportBundle\FilteredEventsExportBundle;
|
||||
use Symfony\Component\Config\Loader\LoaderResolverInterface;
|
||||
use Symfony\Component\HttpKernel\KernelInterface;
|
||||
use Symfony\Component\Routing\RouteCollection;
|
||||
@@ -20,7 +20,7 @@ class Plugin implements BundlePluginInterface, RoutingPluginInterface
|
||||
public function getBundles(ParserInterface $parser): iterable
|
||||
{
|
||||
return [
|
||||
BundleConfig::create(GymnasiumNossenBundle::class)
|
||||
BundleConfig::create(FilteredEventsExportBundle::class)
|
||||
->setLoadAfter([ContaoCoreBundle::class, ContaoCalendarBundle::class]),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace GymnasiumNossenBundle\Controller;
|
||||
namespace FilteredEventsExportBundle\Controller;
|
||||
|
||||
use Contao\CalendarEventsModel;
|
||||
use Contao\CoreBundle\Controller\FrontendModule\AbstractFrontendModuleController;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace GymnasiumNossenBundle\Controller;
|
||||
namespace FilteredEventsExportBundle\Controller;
|
||||
|
||||
use DateTimeImmutable;
|
||||
use Dompdf\Dompdf;
|
||||
@@ -15,7 +15,7 @@ use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Attribute\Route;
|
||||
use Twig\Environment;
|
||||
|
||||
#[Route('/events/pdf', name: 'gymnasium_event_pdf', methods: ['POST'])]
|
||||
#[Route('/events/pdf', name: 'filtered_eventsexport_event_pdf', methods: ['POST'])]
|
||||
class EventPdfController
|
||||
{
|
||||
public function __construct(
|
||||
|
||||
+2
-2
@@ -2,14 +2,14 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace GymnasiumNossenBundle\DependencyInjection;
|
||||
namespace FilteredEventsExportBundle\DependencyInjection;
|
||||
|
||||
use Symfony\Component\Config\FileLocator;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Extension\Extension;
|
||||
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
|
||||
|
||||
class GymnasiumNossenExtension extends Extension
|
||||
class FilteredEventsExportExtension extends Extension
|
||||
{
|
||||
public function load(array $configs, ContainerBuilder $container): void
|
||||
{
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace GymnasiumNossenBundle;
|
||||
namespace FilteredEventsExportBundle;
|
||||
|
||||
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
||||
|
||||
class GymnasiumNossenBundle extends Bundle
|
||||
class FilteredEventsExportBundle extends Bundle
|
||||
{
|
||||
public function getPath(): string
|
||||
{
|
||||
@@ -1,3 +1,3 @@
|
||||
gymnasium_nossen_bundle_controllers:
|
||||
filtered_eventsexport_bundle_controllers:
|
||||
resource: ../../Controller/
|
||||
type: attribute
|
||||
|
||||
@@ -3,9 +3,9 @@ services:
|
||||
autowire: true
|
||||
autoconfigure: true
|
||||
|
||||
GymnasiumNossenBundle\Controller\:
|
||||
FilteredEventsExportBundle\Controller\:
|
||||
resource: ../../../Controller/
|
||||
|
||||
GymnasiumNossenBundle\Controller\EventListModuleController:
|
||||
FilteredEventsExportBundle\Controller\EventListModuleController:
|
||||
tags:
|
||||
- { name: contao.frontend_module, type: gymnasium_eventlist, category: events, template: frontend/module_event_list }
|
||||
- { name: contao.frontend_module, type: filtered_eventsexport_eventlist, category: events, template: frontend/module_event_list }
|
||||
|
||||
Reference in New Issue
Block a user