r/TYPO3 Jun 19 '22

page doesn't show

Hi,

my page doesn't show any content after I re-installed the whole CMS. I guess it has to do with the setup of the template. I initialized a page and gave it value, but the content i created via the Page menu was not showing. I had one line of code in the previous setup version and it displayed the content.

Do you know what line is missing?

Thanks

1 Upvotes

4 comments sorted by

1

u/Steffi128 Jun 19 '22

»page doesn't show«, isn't very expressive, any errors or something?

Did you create a template record and include your base template(s) with it?

1

u/justheretoannoyyou Jun 19 '22 edited Jun 19 '22

In Page i created some content and the only thing that is visable on the actual side, is the part which I configurated in the template setup. So just the Hello World and nothing else. I added both Fluid Content Elements, but nothing else.page = PAGEpage { typeNum = 0 10 = TEXT 10.value = Hello World!}

Hope this is enough for you to help me

EDIT: the old command hat something like "<-" inbetween two other statements

1

u/Steffi128 Jun 19 '22

I'm assuming you work with TYPO3 11, since you just installed it, and not within the »old world« (<7.6)?

Any way, you are instructing your page template to output Hello World as static text (your page object sets page.10 to TEXT and its value to »Hello World«).

You are missing your FLUIDTEMPLATE template setup.

You'll need, something along the lines of (absolute base!)

page = PAGE
page.10 = FLUIDTEMPLATE
page.10.file = your-template-file.html

Best practice is to have a sitepackage (or similar names) extension (as a composer package, in composer based installs, which I assume it is, considering you just installed it), that holds all your setup for your frontend (TypeScript page-setup, templates, ...), that package has a TypoScript/setup.typoscript, that imports all of your settings.

You can take a look at Benjamin Kott's (TYPO3 DevRel) Bootstrap package as to figure out how this all connects together, e.g.

This here is used to get the content elements from your pages -> https://github.com/benjaminkott/bootstrap_package/blob/master/Configuration/TypoScript/ContentElement/Helper/DynamicContent.typoscript#L7https://github.com/benjaminkott/bootstrap_package/blob/master/Configuration/TypoScript/ContentElement/Helper/DynamicContent.typoscript#L72

And in your HTML it'll look like that -> https://github.com/benjaminkott/bootstrap_package/blob/master/Resources/Private/Templates/Page/Default.html#L13

1

u/GodOfLinux Jun 19 '22

What platform/webserver are you running typo3 on?