--
Nothing is impossible. Not if you can imagine it!
Hubert Farnsworth
Jitesh Rana
Thursday 18 August 2011 7:24:55 am
Hi Mark,
Yes, I have put the right attribute identifier in $attributeList. Other attribute(label) stored successfully.
following methods are there in custom datatype
function fetchObjectAttributeHTTPInput( $http, $base, $contentObjectAttribute )
{
if ( $http->hasPostVariable( $base . "_data_oscar_identifier_" . $contentObjectAttribute->attribute( "id" ) ) )
{
$data = $http->postVariable( $base . "_data_oscar_identifier_" . $contentObjectAttribute->attribute( "id" ) );
$contentObjectAttribute->setAttribute( "data_int", $data );
$contentClassAttribute = eZContentClassAttribute::fetch( $contentObjectAttribute->attribute( 'contentclassattribute_id' ));
$contentObjectAttribute->setAttribute( "data_text", $contentClassAttribute->attribute('data_text1').$data );
return true;
}
return false;
}
/*! Store the content. Since the content has been stored in function fetchObjectAttributeHTTPInput(),
this function is with empty code. */
function storeObjectAttribute( $contentObjectattribute )
{
}
André R.
Tuesday 23 August 2011 5:59:28 am
According to your code from fetchObjectAttributeHttpInput it uses data_int AND (for some strange reason) data_text. This does not seems to be reflected in the fromString code.
And as Marco asked about I assume 'id' is the identifier of the attribute with this datatype as setup in the Content Class(?).