Skip to content

Commit

Permalink
[FEATURE] Add site set for extension
Browse files Browse the repository at this point in the history
Closes #1260
  • Loading branch information
derhansen committed Oct 4, 2024
1 parent 34d8e1d commit 3a316f9
Show file tree
Hide file tree
Showing 7 changed files with 108 additions and 15 deletions.
1 change: 1 addition & 0 deletions Configuration/Sets/SfEventMgt/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name: derhansen/sf_event_mgt
56 changes: 56 additions & 0 deletions Configuration/Sets/SfEventMgt/labels.xlf
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2">
<file source-language="en" datatype="plaintext" original="EXT:sf_event_mgt/Configuration/Sets/labels.xlf" date="2024-10-03T15:42:00Z" product-name="sf_event_mgt">
<header/>
<body>
<trans-unit id="label" resname="label">
<source>Event management and registration</source>
</trans-unit>

<trans-unit id="categories.sf_event_mgt" resname="categories.sf_event_mgt">
<source>Event Management</source>
</trans-unit>
<trans-unit id="categories.sf_event_mgt.templates" resname="categories.sf_event_mgt.templates">
<source>Templates</source>
</trans-unit>
<trans-unit id="categories.sf_event_mgt.settings" resname="categories.sf_event_mgt.settings">
<source>Settings</source>
</trans-unit>

<trans-unit id="settings.sf_event_mgt.view.templateRootPath" resname="settings.sf_event_mgt.view.templateRootPath">
<source>Path of custom Fluid Templates for the extension</source>
</trans-unit>
<trans-unit id="settings.sf_event_mgt.view.partialRootPath" resname="settings.sf_event_mgt.view.partialRootPath">
<source>Path of custom Fluid Partials for the extension</source>
</trans-unit>
<trans-unit id="settings.sf_event_mgt.view.layoutRootPath" resname="settings.sf_event_mgt.view.layoutRootPath">
<source>Path of custom Fluid Layouts for the extension</source>
</trans-unit>

<trans-unit id="settings.sf_event_mgt.notification.senderEmail" resname="settings.sf_event_mgt.notification.senderEmail">
<source>Sender email address</source>
</trans-unit>
<trans-unit id="settings.description.sf_event_mgt.notification.senderEmail" resname="settings.description.sf_event_mgt.notification.senderEmail">
<source>Email address for emails sent by the extension</source>
</trans-unit>
<trans-unit id="settings.sf_event_mgt.notification.senderName" resname="settings.sf_event_mgt.notification.senderName">
<source>Sender name</source>
</trans-unit>
<trans-unit id="settings.description.sf_event_mgt.notification.senderName" resname="settings.description.sf_event_mgt.notification.senderName">
<source>Name of the sender for emails sent by the extension</source>
</trans-unit>
<trans-unit id="settings.sf_event_mgt.notification.replyToEmail" resname="settings.sf_event_mgt.notification.replyToEmail">
<source>Reply-to email address</source>
</trans-unit>
<trans-unit id="settings.description.sf_event_mgt.notification.replyToEmail" resname="settings.description.sf_event_mgt.notification.replyToEmail">
<source>If defined, all outgoing emails to the user will include the given reply-to email address</source>
</trans-unit>
<trans-unit id="settings.sf_event_mgt.notification.adminEmail" resname="settings.sf_event_mgt.notification.adminEmail">
<source>Admin email address</source>
</trans-unit>
<trans-unit id="settings.description.sf_event_mgt.notification.adminEmail" resname="settings.description.sf_event_mgt.notification.adminEmail">
<source>Email address of the website/event administrator</source>
</trans-unit>
</body>
</file>
</xliff>
35 changes: 35 additions & 0 deletions Configuration/Sets/SfEventMgt/settings.definitions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
categories:
sf_event_mgt: ~
sf_event_mgt.templates:
parent: sf_event_mgt
sf_event_mgt.settings:
parent: sf_event_mgt
settings:
sf_event_mgt.view.templateRootPath:
default: ''
type: string
category: sf_event_mgt.templates
sf_event_mgt.view.partialRootPath:
default: ''
type: string
category: sf_event_mgt.templates
sf_event_mgt.view.layoutRootPath:
default: ''
type: string
category: sf_event_mgt.templates
sf_event_mgt.notification.senderEmail:
default: ''
type: string
category: sf_event_mgt.settings
sf_event_mgt.notification.senderName:
default: ''
type: string
category: sf_event_mgt.settings
sf_event_mgt.notification.replyToEmail:
default: ''
type: string
category: sf_event_mgt.settings
sf_event_mgt.notification.adminEmail:
default: ''
type: string
category: sf_event_mgt.settings
1 change: 1 addition & 0 deletions Configuration/Sets/SfEventMgt/setup.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import 'EXT:sf_event_mgt/Configuration/TypoScript/setup.typoscript'
12 changes: 6 additions & 6 deletions Configuration/TypoScript/constants.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ plugin.tx_sfeventmgt {
additionalVerificationStep = 0
}
notification {
# cat=plugin.tx_sfeventmgt/notification; type=string; label=E-mail address for emails sent to user
# cat=plugin.tx_sfeventmgt/notification; type=string; label=Email address for emails sent by the extension
senderEmail =
# cat=plugin.tx_sfeventmgt/notification; type=string; label=Sender name for emails sent to user
# cat=plugin.tx_sfeventmgt/notification; type=string; label=Sender name for emails sent by the extension
senderName =
# cat=plugin.tx_sfeventmgt/notification; type=string; label=Signature shown in emails sent to user
# cat=plugin.tx_sfeventmgt/notification; type=string; label=Signature for emails
senderSignature =
# cat=plugin.tx_sfeventmgt/notification; type=string; label=E-mail address for reply-to in emails sent to user
# cat=plugin.tx_sfeventmgt/notification; type=string; label=Email address for reply-to in emails sent to user
replyToEmail =
# cat=plugin.tx_sfeventmgt/notification; type=string; label=Admin E-mail address
# cat=plugin.tx_sfeventmgt/notification; type=string; label=Admin email address
adminEmail =
# cat=plugin.tx_sfeventmgt/notification; type=boolean; label=Override the sender for admin emails with email/name of the registration
registrationDataAsSenderForAdminEmails = 0
Expand Down Expand Up @@ -157,7 +157,7 @@ module.tx_sfeventmgt {
fields = title, teaser
}
notification {
# cat=module.tx_sfeventmgt/notification; type=string; label=E-mail address for emails sent to user
# cat=module.tx_sfeventmgt/notification; type=string; label=Email address for emails sent to user
senderEmail =
# cat=module.tx_sfeventmgt/notification; type=string; label=Sender name for emails sent to user
senderName =
Expand Down
16 changes: 8 additions & 8 deletions Configuration/TypoScript/setup.typoscript
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#==============================================
# FE-Plugin configuration
# FE-Plugin configuration for EXT:sf_event_mgt
#==============================================
plugin.tx_sfeventmgt {
mvc.callDefaultActionIfActionCantBeResolved = 1
persistence.updateReferenceIndex = 1
view {
templateRootPaths {
0 = EXT:sf_event_mgt/Resources/Private/Templates/
1 = {$plugin.tx_sfeventmgt.view.templateRootPath}
1 = {$plugin.tx_sfeventmgt.view.templateRootPath ?? $sf_event_mgt.view.templateRootPath}
}
partialRootPaths {
0 = EXT:sf_event_mgt/Resources/Private/Partials/
1 = {$plugin.tx_sfeventmgt.view.partialRootPath}
1 = {$plugin.tx_sfeventmgt.view.partialRootPath ?? sf_event_mgt.view.partialRootPath}
}
layoutRootPaths {
0 = EXT:sf_event_mgt/Resources/Private/Layouts/
1 = {$plugin.tx_sfeventmgt.view.layoutRootPath}
1 = {$plugin.tx_sfeventmgt.view.layoutRootPath ?? sf_event_mgt.view.layoutRootPath}
}
}
settings {
Expand Down Expand Up @@ -131,11 +131,11 @@ plugin.tx_sfeventmgt {
errorHandling = showStandaloneTemplate,EXT:sf_event_mgt/Resources/Private/Templates/Event/EventNotFound.html,404
}
notification {
senderEmail = {$plugin.tx_sfeventmgt.settings.notification.senderEmail}
senderName = {$plugin.tx_sfeventmgt.settings.notification.senderName}
senderEmail = {$plugin.tx_sfeventmgt.settings.notification.senderEmail ?? $sf_event_mgt.notification.senderEmail}
senderName = {$plugin.tx_sfeventmgt.settings.notification.senderName ?? $sf_event_mgt.notification.senderName}
senderSignature = {$plugin.tx_sfeventmgt.settings.notification.senderSignature}
replyToEmail = {$plugin.tx_sfeventmgt.settings.notification.replyToEmail}
adminEmail = {$plugin.tx_sfeventmgt.settings.notification.adminEmail}
replyToEmail = {$plugin.tx_sfeventmgt.settings.notification.replyToEmail ?? $sf_event_mgt.notification.replyToEmail}
adminEmail = {$plugin.tx_sfeventmgt.settings.notification.adminEmail ?? $sf_event_mgt.notification.adminEmail}
registrationDataAsSenderForAdminEmails = {$plugin.tx_sfeventmgt.settings.notification.registrationDataAsSenderForAdminEmails}
disabled = {$plugin.tx_sfeventmgt.settings.notification.disabled}
registrationNew {
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Language/locallang_be.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@
<source>TypoScript settings missing</source>
</trans-unit>
<trans-unit id="administration.settingsError.description">
<source>Unable to find TypoScript settings for module. Please make sure, you have included the static TypoScript for the extension.</source>
<source>Unable to find TypoScript settings for module. Please make sure, required TypoScript settings have been included. If you use a TypoScript template for your website, include the static TypoScript of sf_event_mgt. If you use site sets and have included the extensions site set, make sure that the templates does not clear constants/setup (which overrides site set includes).</source>
</trans-unit>
<trans-unit id="administration.notify.description">
<source>Please select an email template that will be used to notify participants of the event.</source>
Expand Down

0 comments on commit 3a316f9

Please # to comment.