Project

General

Profile

Actions

Feature #99202

closed

Allow the usage of editable typoscript constants in the CKEditor

Added by Dieter Porth almost 2 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Start date:
2022-11-26
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

An annoying problem in TYPO3 is the collection of master data. I mean imprint data with master data in example. I mean data like the legal name of the company, the company address, the telephone number, the names of directors and other data.
According to the principle of one-off maintenance, I usually store such data in the editable typoScript constants. I make them in this way available for all extensions via the settings. Unfortunately I can't make these constants available to the editors.

My Featurewish
It would be nice if an editor could not only access links and internal pages in CKEditor, but also internal editable TypoScript constants.

Actions #1

Updated by Georg Ringer 5 months ago

  • Status changed from New to Resolved

you could use TS code like that

https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/Functions/Replacement.html#examples

page.10 = FLUIDTEMPLATE
page.10 {
    stdWrap.replacement {
        10 {
            search = ###MY_TEXT###
            replace = {$constant}
        }
        20 {
            search = in da hood
            replace = around the block
        }
        30 {
            search = #a (Cat|Dog|Tiger)#i
            replace = an animal
            useRegExp = 1
        }
    }
}

but there are already extensions like https://extensions.typo3.org/extension/content_replacer or I would suggest to replace data with a custom MiddleWare if nothing from above fits.

Actions #2

Updated by Benni Mack 4 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF