64 Posts
Topy
6 years ago
Topic

Hello.

I tried to get the value of field X.. i have image upload with fieldx.

renderField( 'galerie_photo' ); ?> getValue( 'galerie_photo' ); ?> get( 'galerie_photo' ); ?> get( 'galerie_photo' )->value as $fx){ ?> <?php echo $fx->image_alt; ?>

Can anyone tell me how to do this ?

Get a Book for SEBLOD
85 Posts
kromoadv
6 years ago
0
Level 1

64 Posts
Topy
6 years ago
1
Level 1

I know the tutorial, was the first stept for me .. but i didn't get the results.

I you see in my examples of code... i tried to show all images but i fail :( .

<?php foreach($cck->get( 'your_fieldx' )->value as $fx){ ?> img src="/<?php echo $fx->value; ?>" alt="<?php echo $fx->image_alt; ?>" title ="<?php echo $fx->image_title; ?>" <?php } ?>

1283 Posts
Bucklash
6 years ago
0
Level 2

hi

what do you see if you do var_dump($cck);

is your data there)

64 Posts
Topy
6 years ago
0
Level 1

I found the problem... sry, was my mistake. Because i'm newby on Seblod, i was stucked on this problem.

I didn't publish the field on content tab, only on admin tab :)) 

Get a VIP membership