Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update paths #768

Closed
wants to merge 1 commit into from
Closed

Update paths #768

wants to merge 1 commit into from

Conversation

Alagts
Copy link
Contributor

@Alagts Alagts commented Sep 8, 2023

I updated the paths to the new directory structure

@linawolf
Copy link
Member

linawolf commented Sep 8, 2023

@Alagts thanks a lot for your suggestion. it seems like you based you pull request on branch 12.4 and then made your pull request on branch main This causes many unrelated commits to be in your pull request and conflicst. Please rebase your branch on main or cherry pick your changes into a new change based on branch main. If you need help doing that, please tell us

@linawolf linawolf changed the base branch from main to 12.4 September 21, 2023 13:53

The TCA definition of a new table with the name "database-table-name" must be done in the
extension directory :file:`Configuration/TCA/` with :file:`database-table-name.php` as filename.
An example is :file:`EXT:sys_note/Configuration/TCA/sys_note.php` for table "sys_note". This file will be
An example is :file:`EXT:cms-sys_note/Configuration/TCA/sys_note.php` for table "sys_note". This file will be
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
An example is :file:`EXT:cms-sys_note/Configuration/TCA/sys_note.php` for table "sys_note". This file will be
An example is :file:`EXT:sys_note/Configuration/TCA/sys_note.php` for table "sys_note". This file will be

The extension is still called sys_note

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, this was not clear to me. I thought that the name of the extension and the path in the project is the same.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Alagts Your assumption is partly correct - however, only for a non composer (lagacy) installation (typo3conf/ext/<extension-key> => EXT:<extension-key>

That differs from a composer package name (vendor/package-name ) which needs to hav a extra => typo3/cms => extension-key set to define the extension name. Since v12 extension are no longer installed to typo3conf/ext/<extension-key> and left in vendor/<vendor>/<package-name> (instead of the extension key name). Assets are not symliked by name, but by hash etc.

;)

@@ -54,15 +54,15 @@ to existing tables and add new tables. Several required extensions that are
always loaded, already deliver some TCA files in their
:file:`Configuration/TCA` directories.

Most importantly, the extension "core" comes with a definition of pages,
Most importantly, the extension "cms-core" comes with a definition of pages,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Most importantly, the extension "cms-core" comes with a definition of pages,
Most importantly, the extension "core" comes with a definition of pages,

The extension ist still called core

The extension "frontend" comes with the tables tt_content, fe_users, sys_template and more.
See the directories :file:`typo3/sysext/core/Configuration/TCA/` and
:file:`typo3/sysext/frontend/Configuration/TCA/` for the complete list of the TYPO3 CMS tables.
The extension "cms-frontend" comes with the tables tt_content, fe_users, sys_template and more.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The extension "cms-frontend" comes with the tables tt_content, fe_users, sys_template and more.
The extension "frontend" comes with the tables tt_content, fe_users, sys_template and more.

:file:`typo3/sysext/frontend/Configuration/TCA/` for the complete list of the TYPO3 CMS tables.
The extension "cms-frontend" comes with the tables tt_content, fe_users, sys_template and more.
See the directories :file:`vendor/typo3/cms-core/Configuration/TCA/` and
:file:`vendor/typo3/cms-frontend/Configuration/TCA/` for the complete list of the TYPO3 CMS tables.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is however only true for composer-based installations

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok but still most people hopefully use the Composer based setup.
Anyhow if I have seen correctly mostly everything I said was not right. You can therefore skip the pull request. Or we write explicitly that this path only is valid in Composer based installations. I don't know more what to add to your comment.

Copy link

@sbuerk sbuerk Oct 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hopefully use the Composer based setup.

@Alagts Sadly, no. Taken the latest statistics, it's ~47% between composer and non-composer installations for v11 and v12

See: https://www.t3versions.com/statistics-detail/21 (:heart: thanks to @derhansen )

@sypets
Copy link
Contributor

sypets commented Nov 14, 2023

How to proceed here? This PR is still trying to merge into 12.4, not main (which Lina already pointed out above).

Also, there are several suggested changes which basically undo the patch. I suggest to close.

If someone sees a possibility to salvage this, please repoen.


@Alagts Sorry about this. Sometimes things get merged right away, sometimes changes are requested, and sometimes a PR is rejected. If you have any questions, need help or motivation, you can use the TYPO3 Slack channel #typo3-documentation , see https://docs.typo3.org/m/typo3/docs-how-to-document/main/en-us/HowToGetHelp.html

@sypets sypets closed this Nov 14, 2023
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.

4 participants