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

Missing assets folder when creating public folder after installation #142

Closed
DanielSiepmann opened this issue Apr 3, 2023 · 2 comments
Closed

Comments

@DanielSiepmann
Copy link

Given that:

  1. I've created a TYPO3 extension as composer package
  2. That extension does not have a Public/ folder yet
  3. The extension is installed
  4. A new Public/ folder is created within that extension
  5. The folder does not show up within _assets/ folder

That might happen during setting up an extension, e.g. a sitepackage.

Workaround:

  1. Remove the extension via composer remove
  2. Re-Add the extension via composer req

Maybe we can ease that somehow? Provide a command or maybe "fix" that by a proper 404 handling within TYPO3 itself? I fear that many people will run into that issue when starting with v12.

@helhum
Copy link
Contributor

helhum commented Apr 5, 2023

Thanks for the report.
Since the code that does the aaset publishing belongs to typo3 core, I suggest moving the report to forge.

Some remarks on the current behaviour for clarification.

  1. Assets are published on "composer dump-autoload" as well. So no need to remove and add the extension after the folder is added
  2. I'd say that the minimum requirement for an extension is to have two files: 1. composer.json, 2. Resources/Public/Icons/Extension.png. With this basic requirement fulfilled, there is no issue any more with asset publishing.

But in any case the asset publishing process can and should be improved. Please file a forge ticket for that as pointed out above.

Feel free to assign me to that forge ticket!

@helhum helhum closed this as completed Apr 5, 2023
@DanielSiepmann
Copy link
Author

Thanks for the fast response, I added a forge issue: https://forge.typo3.org/issues/100468

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

No branches or pull requests

2 participants