Skip to content

[DOCS] Restructure the README - #52

Open
davidsteeb wants to merge 1 commit into
masterfrom
task/readme-structure
Open

davidsteeb wants to merge 1 commit into
masterfrom
task/readme-structure

Conversation

@davidsteeb

Copy link
Copy Markdown
Contributor

Rewrites the README so it covers the full setup and matches the code.

Change

  • New section on adding the list to a content element type. The item records have no fields of their own (types.0.showitem is empty), so they have to be chosen per type with overrideChildTca, including hiddenpalette. The README did not mention this before.
  • Rendering is split into record-transformation (recommended, no site set needed) and the site set with {listitems}, listimages, and listassets.
  • The backend preview is described per TYPO3 version: v14 uses the Record API ({record.tx_listelements_list}), v13 uses the extension's listener ({listitems}, processedImages). The previous text said the listener was not required from v13 on, but it still runs on v13.
  • Requirements and composer require added, headings in title case.

Checked against

  • Configuration/TCA/tx_listelements_item.php (fields, palettes, empty default type)
  • Configuration/Sets/listelements/setup.typoscript (listimages, listassets)
  • Classes/Listener/PageContentPreviewRendering.php and Classes/Service/ListService.php (v13 preview, processed* properties)
  • the functional test fixture listelements-example, which uses the same overrideChildTca pattern

Explain how to add the list field to a content element type with
overrideChildTca, recommend record-transformation for rendering, and
describe the backend preview separately for TYPO3 v13 and v14.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant