Seems ther is nothing done about that so I'm developping it.
The xml definition of the field is:
[code:1] <fieldtypes>
<field type="image_select_field" label="image select field">
<database version="1">
<table name="#__comprofiler" class="moscomprofiler" maintable="true" strict="false" drop="never" shared="true">
<columns>
<column name="" nametype="namesuffix" type="sql:varchar(255)" null="true" default="" />
</columns>
</table>
</database>
<params>
<fieldset label="image select field" description="">
<param name="isf_folder" type="text" default="" label="Folder" description="Folder where images are stored" />
<param name="fieldValidateForbiddenList_register" type="text" default="http:,https:,mailto:,//.,<a,</a>;,&#" label="Forbidden words at registration" description="You can set a list of bad words (separated by comma ,) which are not allowed in this field for registration. Use comma twice (,,) to add comma as bad character." />
<param name="fieldValidateForbiddenList_profile" type="text" default="" label="Forbidden words in user profile edits" description="You can set a list of bad words (separated by comma ,) which are not allowed in this field when user updates his profile in profile edits. Use comma twice (,,) to add comma as bad character." />
</fieldset>
</params>
</field>
</fieldtypes>
[/code:1]
Seems to work fine when I include such a field in a backoffice declared tab but when I try to include that field type in a new plugin's tab the field parameters don't appear in the field's backoffice.
Here is the tab declaration in a plugin developped for the purpose:
[code:1] <tab name="Profile Image 1" description="This tab defines profile image 1 parameters" class="get_profile_image1_Tab" fields="1" position="cb_tabmain" displaytype="tab">
<params>
<param name="pi1TabImagesLocation" type="text" label="_UE_PI_IMG_LOCATION" default="images/comprofiler/profile_image" description="path (relative to Joomla install root location) to the directory containing images" />
</params>
<fields>
<field type="image_select_field" title="Image select field" name="cb_profile_img1" description="" registration="0" readonly="0" profile="1">
<params>
<param name="isf_folder" type="text" default="" label="Folder" description="Folder where images are stored" />
<param name="fieldValidateForbiddenList_register" type="text" default="http:,https:,mailto:,//.,<a,</a>;,&#" label="Forbidden words at registration" description="You can set a list of bad words (separated by comma ,) which are not allowed in this field for registration. Use comma twice (,,) to add comma as bad character." />
<param name="fieldValidateForbiddenList_profile" type="text" default="" label="Forbidden words in user profile edits" description="You can set a list of bad words (separated by comma ,) which are not allowed in this field when user updates his profile in profile edits. Use comma twice (,,) to add comma as bad character." />
</params>
</field>
</fields>
</tab>
[/code:1]
How to includes field type parameters (here isf_folder) in a tab plugin declaration ?
How to access field's methods since tab's class, is there any method getFields like getParams ?
Is there any docs explaining that (nothing found in CBRC2b10-bb_API nor CB_API)
Post edited by: kmchen, at: 2009/04/23 13:02