How can I insert the current page title automatically into a TYPO3 template?

后端 未结 8 851
终归单人心
终归单人心 2021-02-05 17:08

actually the title is the whole question.

I just want to modify the template so that the current page title is automatically shown (i\'m working with html templates so I

8条回答
  •  深忆病人
    2021-02-05 17:41

    lib.page_title = CONTENT
    lib.page_title {
    
        table = pages
    
        select {
            where = uid = 2
        }
    
        renderObj = COA
        renderObj {
    
            10 = TEXT
            10 {
                field = title
                wrap = 

    |

    } 20 = TEXT 20 { field = subtitle stdWrap.required = 1 stdWrap.wrap =
    |
    } } }

    call the lib.page_title where want to render typoscript with this lines

    
    

    I hope this helps !!!

提交回复
热议问题