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

Add more detailed information about static templates and the sequence of overwriting to the manual #186

Open
daUhradone opened this issue Feb 2, 2021 · 0 comments

Comments

@daUhradone
Copy link

daUhradone commented Feb 2, 2021

suggestion for extending the manual:

To get the blog extension running you must include static „template“ files (in this case „template“ refers to TypoScript setup files) in the root of the page tree.

Tool „Template“ -> Earth picto -> „Edit the whole template record“ -> „Includes“ -> „Include static (from extensions).

Sequence matters

If you put the Blog-Files last, they will overwrite your file from your sitepackage:

Resources/Private/Templates/Page/Default.html

and provide in the blog Default.html file a new Section="Main". Therefor you could e. g. loose your footer, if it was part of the section="Main" in your template file Default.html in the sitepackage

If you put your sitepackage static files last, you will see no blog items, just the blog content. This means your old page template file is activ but not the blog page template file.

The blog extension will not work if you have named in your sitepackage the
Resources/Private/Templates/Page/Default.html file with a different name e. g. two-coloum-page-template.html
Since we are dealing with pages as blog posts, the extension must be able to overwrite a Default.html file in the Resources/Private/Templates/Page section.

see also my blog where I tried to explain the problems of understandign that I had:
https://blog.zazu.berlin/internet-programmierung/typo3-gmbh-blog-extension-t3g-blog-issues-with-default-html-and-section-main.html
The information in the tip-box of the manual is a bit cryptic

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

1 participant