Domanda

Sembra che ci siano tre diversi luoghi in cui posso scrivere Dypscript: in Modelli, c'è il campo di costi e il campo di configurazione e in ogni pagina, c'è un campo TSConfig.Tuttavia, sembra che ogni comando typoscript abbia bisogno di andare in un campo specifico.La maggior parte delle volte, devo provare prima di trovare se una determinata configurazione entra in configurazione del modello, o in TSConfig della pagina principale.

Perché ci sono tre luoghi diversi per scrivere Typescript?Qual è l'uso di ciascuno di loro?

È stato utile?

Soluzione

  • 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.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top