45 Posts
Sven
5 years ago
0
Topic

Hi,

I want to get the data from a groupX Field from another article. I did the following:

$content = new JCckContentArticle;
$content = JCckContentArticle::getInstance( 278 ); 

$benefits = $content->getProperty( 'karriereseite_benefits' ); // (karriereseite_benefits is a groupX-field)
CCK_Content::getValues($benefits);



The string value of the GroupX "karriereseite_benefits" was converted to an array, but not in the way I expected. How do I get the values of the groupX properly formated to an array which can be iterated using "foreach"?

I hope I have described my problem clearly...

Best regards
Sven

Get a VIP membership