Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View Privacy Policy

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: How to create other Content Elements?

How to create other Content Elements? 7 years 9 months ago #1173

  • topgun21
  • topgun21's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
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?
The administrator has disabled public write access.

Re: How to create other Content Elements? 7 years 9 months ago #1174

  • andrea_4g
  • andrea_4g's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1121
  • Thank you received: 163
Basic informations are here:
http://solidsystem.it/joomla-extensions/custom-properties.html#content_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:
	<!--  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.
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.160 seconds