How to create other Content Elements?

  • topgun21
  • Autore della discussione
  • Offline
  • Nuovo Utente
  • Nuovo Utente
Di più
11 Anni 10 Mesi fa #1173 da topgun21
How to create other Content Elements? è stato creato da topgun21
I have created two custom components that are copies of the Web Links component that save data in our JOS_CRPRESENTATIONS and JOS_CRPUBLICATIONS tables, and we'd like to add them to the CP content element list as an available content element. How can we do that?

Si prega Accesso o Crea un account a partecipare alla conversazione.

Di più
11 Anni 10 Mesi fa #1174 da andrea_4g
Risposta da andrea_4g al topic Re: How to create other Content Elements?
Basic informations are here:
solidsystem.it/joomla-extensions/custom-...nt_element_connector

The aim is to map "your" fields to Joomla's standard content table, using an XML file. However some entries does not map DB fields. For instance:
Code:
<!-- following pars serve to put together the url to open the detail view of the content item e.g. option=com_content&task=view&id=<replaced with id> Joomla 1.5 supports the view model, so it is avisable tu use 'href_view' instead of href_task - slug links generates links as id:title-alias - if href_catid is set the url becomes href_id:value of title_alias&href_catid:value of cat_table_alias e.g. id:title-alias&catid=category-alias --> <field name="href_option" type="text" required="1">com_content</field> <field name="href_task" type="text" required="0"></field> <field name="href_view" type="text" required="1">article</field> <field name="href_id" type="text" required="1">id</field> <field name="slug_links" type="text" required="0">1</field> <field name="href_catid" type="text" required="0">catid</field>
As you can see, those href_* entries are used to build an url that in turn calls a component. Therefore, besided custom DB tables such in you case, it takes a components to handle them.

Si prega Accesso o Crea un account a partecipare alla conversazione.

Tempo creazione pagina: 0.124 secondi