1283 Posts
Bucklash
7 years ago
2
Topic

Hi folks

I'm curious to know about $cck->get('my_group_x_field')->values.

I'm not having much joy. Value works. Any body want to share some code examples :)

In position variation I can do :

$groupx = $cck->get('my_group_x_field')->value;

foreach($groupx as $gx) { echo $gx['my_field']->value; }



Thanks

Jon

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
1
Level 1

Typographies are different from overrides as while syntax is similar, actually search&replace happens behind the scenes. See manual for your question.

1283 Posts
Bucklash
7 years ago
0
Level 2

Hi

Thanks Klas.  I did actually forget that but was about grouox was in there...

However I have no joy at minute.

$cck->getValue('my_groupx_field',[x],'my_field_withinin_groupx');

Can't think what I'm missing...

Will do position override in meantime :)

Get a VIP membership