Hi Jack,
It s true, i make a mistake, sorry it's not getField but getValue.
And yes, others work! How?
getTypo, only if you use a typo plug-in on your field ( bouton 3 ).
getText, only if you use something like that inside a radio button : mytext=myvalue.
getHtml is the samething of renderField without the markup.
The renderField is the markup. Inside the markup, you have the getLabel and the getValue like that :
// The markup around each field (label+value/form) can be Overridden.
// Remove the underscore [_] from the Filename. (filename = markup.php)
// Edit the function name:
// - fields/markup.php => cckMarkup_[template]
// - fields/[contenttype]/markup.php => cckMarkup_[template]_[contenttype]
// - fields/[searchtype]/markup.php => cckMarkup_[template]_[searchtype]
// Write your Custom Markup code. (see default markup below)
// cckMarkup
function cckMarkup_seb_one( $cck, $html, $field, $options )
{
$desc = '';
if ( $cck->getStyleParam( 'field_description', 0 ) ) {
$desc = ( $field->description != '' ) ? '<div id="'.$cck->id.'_desc_'.$field->name.'" class="cck_desc cck_desc_'.$field->type.'">'.$field->description.'</div>' : '';
}
$label = '';
if ( $options->get( 'field_label', $cck->getStyleParam( 'field_label', 1 ) ) ) {
$label = $cck->getLabel( $field->name, true, ( $field->required ? '*' : '' ) );
$label = ( $label != '' ) ? '<div id="'.$cck->id.'_label_'.$field->name.'" class="cck_label cck_label_'.$field->type.'">'.$label.'</div>' : '';
}
$html = '<div id="'.$cck->id.'_'.$cck->mode_property.'_'.$field->name.'" class="cck_'.$cck->mode_property.' cck_'.$cck->mode_property.'_'.$field->type.'">'.$html.'</div>';
$html = '<div id="'.$cck->id.'_'.$field->name.'" class="cck_'.$cck->mode.'s cck_'.$cck->client.' cck_'.$field->type.' cck_'.$field->name.'">'.$label.$html.$desc.'</div>';
return $html;
}
?>