TYPO3では、セットアップ、定数、TSCONFIGの違いは何ですか
質問
TypoScriptを書くことができる3つの異なる場所があるようです。テンプレートでは、定数フィールドとセットアップフィールドがあり、各ページではTSConfig
フィールドがあります。ただし、各typoscriptコマンドは特定のフィールドに入る必要があるようです。ほとんどの場合、指定された設定がテンプレートセットアップに入る前に、またはルートページTSConfig
で見つける前に試みる必要があります。
TypoScriptを書くには3つの場所がありますか?それらのそれぞれの使用は何ですか?
解決
- TSconfig is mainly for the backend configuration. You can add/alter/remove values from forms, change the behavior what kind of records users can add, default usergroups etc. see About TSconfig for more details.
- Typoscript in the template is used to change the frontend behavior, template parsing, Extension configuration, navigation etc. Typoscript in the template has so called cObjects which provide useful functionality like Image manipulation (IMAGE), getting records from the database (RECORDS), creating menus (HMENU), see TypoScript Reference.
- Typoscript constants are much like variables, which can be used within your template Typoscript. e.g. you have an email address which occurs in many different places within the Typoscript template, you might want to define it as constant. See documentation for more info.
所属していません StackOverflow