Task #87027

How to extend/use the site language configuration with custom fields

Added by Josef Glatz 15 days ago. Updated 6 days ago.

Status:
Resolved
Priority:
Must have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2018-11-28
Due date:
% Done:

100%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Status

Since #84581 extending the site configuration can be extended with own fields. Extending the site is possible and a generic getter which can be used like ->getConfiguration()['myNewField'].

While extending the site config itself works for some types of values, it's often necessary to add fields to site_language like a siteTitle, too. Extending the configuration works like a charm, so far.

How can I use the custom fields "on the website"?

A) How can I retrieve the value within TypoScript?
B) How can I retrieve the value within Fluid?
C) How can I retrieve the value within my own Class/Plugin/Controller?

From my perspective (by reading the code), that's actually not really possible.

Any suggestions, tipps, hints or even a plan how we can extend the core to make that possible would be nice. I can also help in coding if I get some mentoring in this area.


Related issues

Related to TYPO3 Core - Feature #85592: Move site title to site module On Hold 2018-07-19

Associated revisions

Revision c220c97d (diff)
Added by Georg Ringer 6 days ago

[TASK] Add full configuration to SiteLanguage::toArray

Make the full configuration of a SiteLanguage available. This is required
to get access to an extended site language configuration.

To be in sync to the Site object, the property attributes is renamed to
configuration.

Resolves: #87027
Releases: master
Change-Id: I8962c5f7cafb38398bf9ded77058af38828e7182
Reviewed-on: https://review.typo3.org/59025
Tested-by: TYPO3com <>
Reviewed-by: Andreas Fernandez <>
Reviewed-by: Josef Glatz <>
Tested-by: Josef Glatz <>
Reviewed-by: Anja Leichsenring <>
Tested-by: Anja Leichsenring <>
Reviewed-by: Markus Klein <>
Tested-by: Markus Klein <>

History

#1 Updated by Josef Glatz 15 days ago

#2 Updated by Gerrit Code Review 9 days ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59025

#3 Updated by Gerrit Code Review 9 days ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59025

#4 Updated by Gerrit Code Review 6 days ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/59025

#5 Updated by Georg Ringer 6 days ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF