0
votes

I have a TYPO3 TypoScript html template and want to show in a single page (called: "competitions"), a list of all competitions with their image and title and this should be links for each of them ('competition'). I have thought to make a page ('competitions') and subpages ('single cmpetition'). I'm not using Fluid actually. How can i get and display those in main page? Or is another way to achieve this ?

1
i would appreciate if you could provide more details of TYPO3 version and template methods, for your answer you can do this by page content RECORD, and where you have to include that page static by page id and those all content will be laid on "competitions" page.manish1706
Im using Typo3 7.6 and the 'traditional' TypoScript Templating methodDonald M

1 Answers

0
votes

depending on your data structure (is the relevant info you want to show stored in the pages record or do you want access tt_content records inside that pages) it is more or less easy.

you always can access the informations with typoscript, but those constructs may get complicated. that means: developing the TS may take some time and the following rendering might also get complex and might take some time.

the easiest way: all information in pages records:

temp.competitions = CONTENT
temp.competitions {
    table = pages
    select {
        pidInList = this
        orderBy = sorting
    }

   renderObj = COA
   renderObj {
        wrap = <div class="teaser">|</div>

        10 = TEXT
        10.field = title
        10.wrap = <h3>|</h3>

        20 = TEXT
        20.field = abstract
        20.wrap = <div class="abstract">|</div>

        30 = IMAGE
        :

    }
}