[SOLVED] Sitepackage question and problem

Hi, I am still trying to wrap my head around typo3 and I don’t really understand the purpose of the Site package. It seems like it just packages up stuff that is already in the site and that I can edit anyway. I don’t understand its place, function, etc.

Also, I tried to create a site package using the builder for my new install of the introduction package, downloaded it and ran composer require. At first it could not find my package, then I figured out I needed to use the name in the package composer.json in the composer require command instead of the folder name. Ok, but now I get this:


composer require bubkis-inc/trial-site-package

In PackageDiscoveryTrait.php line 339:
                                                                                                 
  Could not find a version of package bubkis-inc/trial-site-package matching your minimum-stabi  
  lity (stable). Require it with an explicit version constraint allowing its desired stability.
               Thank you

I got off of StackOverflow to put :dev-main at the end of the require and it fixed the composer error, but I still would love an explanation of the site package if anyone has a few minutes.

Thanks!

Hi @fpolli!

There’s not much magic about a site package. As the relevant documentation states, it’s “a custom TYPO3 extension that contains files regarding the theme of a site.”

That can, however be very useful. It both enables you to use different versions of the same site package in different TYPO3 installations, and you can use it as the basis for the design of any number of websites within the same TYPO3 installation.

From TYPO3 v13 on, site packages can go hand-in-hand with site sets, allowing you to configure site-specific configurations.

I hope that explains it for you, but please don’t hesitate to ask further questions.

1 Like