103 Posts
Osep45
4 years ago
Topic

Hy,

I Have a content type in which I include a group X (with 4 fields in my group)

I would like to display these 4 fields with a css accordion presentation : is it possible to attribute a variation to the content type of my group  ? 

I tried, but nothing happens ...

my field into my content type :

the content type of my group with the variation :

into my php folder moocpdf.php :

<div class="accordmooc">
<div class="tabs">
<div class="tab">
<input type="checkbox" id="chck1">
<label for="chck1"><?php echo $cck->getValue('dio_mooc_pdf_titre'); ?></label>
<div class="tab-content">
<?php echo $cck->renderField('dio_mooc_pdf_presentation'); ?><br>
<object type="application/pdf" name="PDF" width="100%" height="100%" data="/images/mooc/$cck->getValue('dio_mooc_pdf_liseuse');"></object>
</div>
</div>
</div>
</div>

thanks for your answer !

Get a Book for SEBLOD
1283 Posts
Bucklash
4 years ago
0
Level 1

Might have to do override in parent content type, not groupx content type....

Get a Book for SEBLOD