Skip to content

Commit

Permalink
[TASK] Display information on how to install Site Package on success …
Browse files Browse the repository at this point in the history
…page (#470)

Only added for current LTS versions, in the other versions some of the links do not yet work

Co-authored-by: Benjamin Kott <[email protected]>
  • Loading branch information
linawolf and benjaminkott authored Nov 25, 2024
1 parent 51b01cc commit 365afb3
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates/sitepackage/partials/typoscript-provider.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% if sitepackage.typo3Version > 13 %}
<p>Include the Set "{{ sitepackage.title }}" in your site configuration.
See also <a href="https://docs.typo3.org/permalink/t3sitepackage:minimal-extension-siteset@{{ sitepackage.typo3Version }}">Create a basic site set</a>.</p>
{% else %}
<p>Include the TypoScript Set "{{ sitepackage.title }}" in the TypoScript record of your root page:
<a href="https://docs.typo3.org/permalink/t3sitepackage:typo3-backend-typoscript-template@{{ sitepackage.typo3Version }}">TypoScript template</a></p>
{% endif %}
57 changes: 57 additions & 0 deletions templates/sitepackage/success.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,63 @@
<span class="btn-text">Download</span>
</a>
{% endframe %}
{% if sitepackage.typo3Version > 12 %}
{% frame with { indent: true, id: 'sitepackage-installation', title: 'Install the Site Package', color: 'lighter' } %}
<div class="accordion" id="accordion-installation">
<div class="accordion-item card">
<div class="accordion-header card-header" id="accordion-heading-composer">
<h4 class="accordion-title">
<a href="#accordion-composer" class="accordion-title-link collapsed" data-bs-toggle="collapse" data-bs-parent="#accordion-installation" aria-expanded="true" aria-controls="accordion-installation">
<span class="accordion-title-link-text">
Composer-based TYPO3 installation
</span>
<span class="accordion-title-link-state"></span>
</a>
</h4>
</div>
<div id="accordion-composer" class="accordion-collapse collapse" aria-labelledby="accordion-heading-composer" data-bs-parent="#accordion-installation">
<div class="accordion-body card-body">
<div class="accordion-content">
<div class="accordion-content-item accordion-content-text">
<p>Download the Site Package and save it into folder
<a href="https://docs.typo3.org/permalink/t3coreapi:directory-packages@{{ sitepackage.typo3Version }}">packages</a>
in the root of your TYPO3 installation.</p>
<p>Require the Site Package using Composer: </p>
<pre style="white-space: pre-line;">
<code>composer req {{ sitepackage.vendorNameAlternative }}/{{ sitepackage.packageNameAlternative }}</code>
</pre>
{% include 'sitepackage/partials/typoscript-provider.twig' %}
</div>
</div>
</div>
</div>
<div class="accordion-header card-header" id="accordion-heading-classic">
<h4 class="accordion-title">
<a href="#accordion-classic" class="accordion-title-link collapsed" data-bs-toggle="collapse" data-bs-parent="#accordion-installation" aria-expanded="false" aria-controls="accordion-classic">
<span class="accordion-title-link-text">
Classic TYPO3 installation
</span>
<span class="accordion-title-link-state"></span>
</a>
</h4>
</div>
<div id="accordion-classic" class="accordion-collapse collapse" aria-labelledby="accordion-heading-classic" data-bs-parent="#accordion-installation">
<div class="accordion-body card-body">
<div class="accordion-content">
<div class="accordion-content-item accordion-content-text">
<p>Download the Site Package and save it into folder
<a href="https://docs.typo3.org/permalink/t3coreapi:legacy-directory-typo3conf-ext@{{ sitepackage.typo3Version }}">typo3conf/ext/</a>
in the root of your TYPO3 installation.</p>
<p>Activate extension "{{ sitepackage.title }}" with key {{ sitepackage.extensionKey }} in the Extension Manager. </p>
{% include 'sitepackage/partials/typoscript-provider.twig' %}
</div>
</div>
</div>
</div>
</div>
</div>
{% endframe %}
{% endif %}

{% frame with { indent: true } %}
<h2>Generated Configuration</h2>
Expand Down

0 comments on commit 365afb3

Please sign in to comment.