Joomla.it Forum

Joomla! 3 => Joomla! 3 => : dagh 26 Aug 2017, 11:34:05

: Aggiungere custom field ad un componente
: dagh 26 Aug 2017, 11:34:05
Salve a tutti,
ho trovato questa guida per poter aggiungere custom field ad un componente : https://docs.joomla.org/J3.x:Adding_custom_fields/Implement_into_your_component. Ma non riesco a capire la prima parte della guida dove dice: How to add fields to the backend lists.

In particolare non capisco quale sia il file da modificare e a cosa si riferisca quando dice:

"Similar to com_categories there are just a few lines needed to add the fields in the backend view. Just add the following lines to the method addSubmenu in your component helper class.
 The used context needs to match the context you want to implement the fields in. An example of context could be com_content.article or com_weblinks.weblink. We’re using com_example.item here as example. Everything except the context option needs to be changed."

Sto cercando di imparare e mi piacerebbe capire meglio. Sono più che benvenuti link ad altre guidi e consigli.
Grazie a tutti!
: Re:Aggiungere custom field ad un componente
: tomtomeight 26 Aug 2017, 13:51:31
Dovresti prima studiare e capire come è fatto un componente, capire la logica del pattern mvc e masticare un minimo di php. Se vuoi imparare questi sono i passi, se pur qualcuno ti dice passo passo  come fare non impari nulla.  Documentazione in merito ne trovi a josa in google.