diff --git a/Configuration/Sets/Default/config.yaml b/Configuration/Sets/Default/config.yaml new file mode 100644 index 0000000..ad6889e --- /dev/null +++ b/Configuration/Sets/Default/config.yaml @@ -0,0 +1,3 @@ +name: dpn/glossary +label: DPN Glossary + diff --git a/Configuration/Sets/Default/constants.typoscript b/Configuration/Sets/Default/constants.typoscript new file mode 100644 index 0000000..df0c196 --- /dev/null +++ b/Configuration/Sets/Default/constants.typoscript @@ -0,0 +1,34 @@ +@import 'EXT:dpn_glossary/Configuration/TypoScript/constants.typoscript' + +# Map Site-Settings to TypoScript Constants +plugin.tx_dpnglossary { + persistence { + storagePid = {$site:settings.glossary.storagePidList} + } + + settings { + detailPage = {$site:settings.glossary.glossaryPage} + parsingPids = {$site:settings.glossary.parsingPids} + parsingExcludePidList = {$site:settings.glossary.parsingExcludePidList} + parsingSpecialWrapCharacters = {$site:settings.glossary.parsingSpecialWrapCharacters} + parserRepositoryClass = {$site:settings.glossary.parserRepositoryClass} + maxReplacementPerPage = {$site:settings.glossary.maxReplacementPerPage} + maxReplacementPerPageRespectSynonyms = {$site:settings.glossary.maxReplacementPerPageRespectSynonyms} + parsingTags = {$site:settings.glossary.parsingTags} + forbiddenParentTags = {$site:settings.glossary.forbiddenParentTags} + forbiddenParsingTagClasses = {$site:settings.glossary.forbiddenParsingTagClasses} + forbiddenParentClasses = {$site:settings.glossary.forbiddenParentClasses} + listmode = {$site:settings.glossary.listmode} + previewmode = {$site:settings.glossary.previewmode} + previewlimit = {$site:settings.glossary.previewlimit} + disableParser = {$site:settings.glossary.disableParser} + parseSynonyms = {$site:settings.glossary.parseSynonyms} + priorisedSynonymParsing = {$site:settings.glossary.priorisedSynonymParsing} + limitParsingId = {$site:settings.glossary.limitParsingId} + useTermForSynonymParsingDataWrap = {$site:settings.glossary.useTermForSynonymParsingDataWrap} + addStylesheet = {$site:settings.glossary.addStylesheet} + overrideFluidStyledContentLayout = {$site:settings.glossary.overrideFluidStyledContentLayout} + excludeTermLinksTargetPages = {$site:settings.glossary.excludeTermLinksTargetPages} + } +} + diff --git a/Configuration/Sets/Default/de.labels.xlf b/Configuration/Sets/Default/de.labels.xlf new file mode 100644 index 0000000..82289de --- /dev/null +++ b/Configuration/Sets/Default/de.labels.xlf @@ -0,0 +1,222 @@ + + + +
+ + + + Glossary + Glossar + + + + + Glossary term storage PageID list + Glossar-Begriffe Speicherort PageID Liste + + + Folders PageIDs (comma list) which contains the glossary terms + Ordner PageIDs (kommagetrennte Liste), welche die Glossar-Begriffe beinhalten + + + + Glossary page PageID + Glossarseiten PageID + + + PageID of the detailpage for parsed terms + PageID der Detailseite für geparste Begriffe + + + + Parsing Pages + Zu parsende Seiten + + + Pages PageIDs (comma list) which should be parsed for glossary terms (0 = all) + Seiten PageIDs (kommagetrennte Liste), die nach Glossar-Begriffen durchsucht werden sollen (0 = alle) + + + + Exclude Pages + Ausgeschlossene Seiten + + + Pages PageIDs (comma list) which should not be parsed for glossary terms + Seiten PageIDs (kommagetrennte Liste), die nicht nach Glossar-Begriffen durchsucht werden sollen + + + + Parsing Special Wrap Characters + Parsing-Spezialzeichen + + + Additional special characters to respect in parser regular expression + Zusätzliche Sonderzeichen, die in der Parser-Regular-Expression berücksichtigt werden sollen + + + + Parser Repository Class + Parser Repository Klasse + + + The repository class used in the parser service + Die im Parser-Service verwendete Repository-Klasse + + + + Maximum Replacements Per Page + Maximale Ersetzungen pro Seite + + + Maximum replacements for each term (-1 = any) + Maximale Ersetzungen für jeden Begriff (-1 = unbegrenzt) + + + + Respect Replacement Counter for Synonyms + Ersetzungszähler für Synonyme berücksichtigen + + + Respect replacement counter when parsing synonyms + Ersetzungszähler beim Parsen von Synonymen berücksichtigen + + + + Parsing Tags + Parsing-Tags + + + Tags which content will be parsed for terms + Tags, deren Inhalt nach Begriffen durchsucht wird + + + + Forbidden Parent Tags + Verbotene Eltern-Tags + + + Tags which are not allowed as direct parent for a parsingTag + Tags, die nicht als direktes Elternelement für ein Parsing-Tag erlaubt sind + + + + Forbidden Parsing Tag Classes + Verbotene Parsing-Tag-Klassen + + + Classes which are not allowed for the parsing tag + Klassen, die für das Parsing-Tag nicht erlaubt sind + + + + Forbidden Parent Classes + Verbotene Eltern-Klassen + + + Classes which are not allowed on any parent of the parsing tag + Klassen, die auf keinem Elternelement des Parsing-Tags erlaubt sind + + + + List Mode + Listen-Modus + + + Listmode: normal, character or paginated by characters + Listen-Modus: normal, zeichenbasiert oder nach Zeichen paginiert + + + + Preview Mode + Vorschau-Modus + + + Previewmode: newest or random + Vorschau-Modus: neueste oder zufällig + + + + Preview Limit + Vorschau-Limit + + + Previewlimit + Vorschau-Limit + + + + Disable Parser + Parser deaktivieren + + + Disable parser (default: enabled) + Parser deaktivieren (Standard: aktiviert) + + + + Parse Synonyms + Synonyme parsen + + + Parse the terms synonyms (default: enabled) + Synonyme der Begriffe parsen (Standard: aktiviert) + + + + Priorise Synonym Parsing + Synonym-Parsing priorisieren + + + Priorise the synonyms before the actual term when parsing (default: enabled) + Synonyme vor dem eigentlichen Begriff beim Parsen priorisieren (Standard: aktiviert) + + + + Limit Parsing ID + Parsing-ID begrenzen + + + Limit parsing to a single node with this ID + Parsing auf einen einzelnen Knoten mit dieser ID begrenzen + + + + Use Term for Synonym Parsing Data Wrap + Begriff für Synonym-Parsing Data Wrap verwenden + + + Use the origin term for content object data when parsing synonyms (default: disabled) + Ursprünglichen Begriff für Content-Object-Daten beim Parsen von Synonymen verwenden (Standard: deaktiviert) + + + + Add Stylesheet + Stylesheet hinzufügen + + + Add the extension stylesheet (default: enabled) + Erweiterungs-Stylesheet hinzufügen (Standard: aktiviert) + + + + Override Fluid Styled Content Layout + Fluid Styled Content Layout überschreiben + + + Override fluid styled content layout to enable dynamic exclusion via content properties (default: enabled) + Fluid Styled Content Layout überschreiben, um dynamischen Ausschluss über Content-Eigenschaften zu ermöglichen (Standard: aktiviert) + + + + Exclude Term Links Target Pages + Zielseiten von Begriffs-Links ausschließen + + + Don't parse terms when current page is the term links target (default: disabled) + Begriffe nicht parsen, wenn die aktuelle Seite das Ziel der Begriff-Links ist (Standard: deaktiviert) + + + + + diff --git a/Configuration/Sets/Default/labels.xlf b/Configuration/Sets/Default/labels.xlf new file mode 100644 index 0000000..d5b9f98 --- /dev/null +++ b/Configuration/Sets/Default/labels.xlf @@ -0,0 +1,175 @@ + + + +
+ + + + Glossary + + + + + Glossary term storage PageID list + + + Folders PageIDs (comma list) which contains the glossary terms + + + + Glossary page PageID + + + PageID of the detailpage for parsed terms + + + + Parsing Pages + + + Pages PageIDs (comma list) which should be parsed for glossary terms (0 = all) + + + + Exclude Pages + + + Pages PageIDs (comma list) which should not be parsed for glossary terms + + + + Parsing Special Wrap Characters + + + Additional special characters to respect in parser regular expression + + + + Parser Repository Class + + + The repository class used in the parser service + + + + Maximum Replacements Per Page + + + Maximum replacements for each term (-1 = any) + + + + Respect Replacement Counter for Synonyms + + + Respect replacement counter when parsing synonyms + + + + Parsing Tags + + + Tags which content will be parsed for terms + + + + Forbidden Parent Tags + + + Tags which are not allowed as direct parent for a parsingTag + + + + Forbidden Parsing Tag Classes + + + Classes which are not allowed for the parsing tag + + + + Forbidden Parent Classes + + + Classes which are not allowed on any parent of the parsing tag + + + + List Mode + + + Listmode: normal, character or paginated by characters + + + + Preview Mode + + + Previewmode: newest or random + + + + Preview Limit + + + Previewlimit + + + + Disable Parser + + + Disable parser (default: enabled) + + + + Parse Synonyms + + + Parse the terms synonyms (default: enabled) + + + + Priorise Synonym Parsing + + + Priorise the synonyms before the actual term when parsing (default: enabled) + + + + Limit Parsing ID + + + Limit parsing to a single node with this ID + + + + Use Term for Synonym Parsing Data Wrap + + + Use the origin term for content object data when parsing synonyms (default: disabled) + + + + Add Stylesheet + + + Add the extension stylesheet (default: enabled) + + + + Override Fluid Styled Content Layout + + + Override fluid styled content layout to enable dynamic exclusion via content properties (default: enabled) + + + + Exclude Term Links Target Pages + + + Don't parse terms when current page is the term links target (default: disabled) + + + + + diff --git a/Configuration/Sets/Default/page.tsconfig b/Configuration/Sets/Default/page.tsconfig new file mode 100644 index 0000000..970ab33 --- /dev/null +++ b/Configuration/Sets/Default/page.tsconfig @@ -0,0 +1,2 @@ +@import 'EXT:dpn_glossary/Configuration/page.tsconfig' + diff --git a/Configuration/Sets/Default/settings.definitions.yaml b/Configuration/Sets/Default/settings.definitions.yaml new file mode 100644 index 0000000..612dc58 --- /dev/null +++ b/Configuration/Sets/Default/settings.definitions.yaml @@ -0,0 +1,120 @@ +categories: + dpn.functions.glossary: + parent: dpn.functions + +settings: + glossary.storagePidList: + category: dpn.functions.glossary + type: string + default: '' + + glossary.glossaryPage: + category: dpn.functions.glossary + type: page + default: 0 + + glossary.parsingPids: + category: dpn.functions.glossary + type: string + default: '0' + + glossary.parsingExcludePidList: + category: dpn.functions.glossary + type: string + default: '' + + glossary.parsingSpecialWrapCharacters: + category: dpn.functions.glossary + type: string + default: '' + + glossary.parserRepositoryClass: + category: dpn.functions.glossary + type: string + default: 'Featdd\DpnGlossary\Domain\Repository\ParserTermRepository' + + glossary.maxReplacementPerPage: + category: dpn.functions.glossary + type: int + default: -1 + + glossary.maxReplacementPerPageRespectSynonyms: + category: dpn.functions.glossary + type: bool + default: false + + glossary.parsingTags: + category: dpn.functions.glossary + type: string + default: 'p' + + glossary.forbiddenParentTags: + category: dpn.functions.glossary + type: string + default: 'a,script' + + glossary.forbiddenParsingTagClasses: + category: dpn.functions.glossary + type: string + default: '' + + glossary.forbiddenParentClasses: + category: dpn.functions.glossary + type: string + default: 'tx_dpn_glossary_exclude' + + glossary.listmode: + category: dpn.functions.glossary + type: string + default: 'normal' + + glossary.previewmode: + category: dpn.functions.glossary + type: string + default: 'newest' + + glossary.previewlimit: + category: dpn.functions.glossary + type: int + default: 5 + + glossary.disableParser: + category: dpn.functions.glossary + type: bool + default: false + + glossary.parseSynonyms: + category: dpn.functions.glossary + type: bool + default: true + + glossary.priorisedSynonymParsing: + category: dpn.functions.glossary + type: bool + default: true + + glossary.limitParsingId: + category: dpn.functions.glossary + type: string + default: '' + + glossary.useTermForSynonymParsingDataWrap: + category: dpn.functions.glossary + type: bool + default: false + + glossary.addStylesheet: + category: dpn.functions.glossary + type: bool + default: true + + glossary.overrideFluidStyledContentLayout: + category: dpn.functions.glossary + type: bool + default: false + + glossary.excludeTermLinksTargetPages: + category: dpn.functions.glossary + type: bool + default: false + diff --git a/Configuration/Sets/Default/setup.typoscript b/Configuration/Sets/Default/setup.typoscript new file mode 100644 index 0000000..40cb189 --- /dev/null +++ b/Configuration/Sets/Default/setup.typoscript @@ -0,0 +1,2 @@ +@import 'EXT:dpn_glossary/Configuration/TypoScript/setup.typoscript' +