How to create other Content Elements?

  • topgun21
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 11 months ago #1173 by topgun21
How to create other Content Elements? was created by 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?

Please Log in or Create an account to join the conversation.

More
11 years 11 months ago #1174 by andrea_4g
Replied by andrea_4g on 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.

Please Log in or Create an account to join the conversation.

Time to create page: 0.153 seconds