102 Posts
2 years ago


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>

thanks for your answer !

Get a VIP membership
1279 Posts
2 years ago
Level 1

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

Get a Book for SEBLOD