Hi,
I'm creating a portfolio page where I can present my work. I created a multiple selection field because I could have collaborated with more people to carry out my work and I would like to add a class for each value in order to give a different style to each one, plus I would like to add a link to refer to the collaborator's site.
I created a multiple selection field and tried to work with custom attributes by adding the class attribute but it is not displayed in the frontend.
How can I do?
Furthermore, a div is not created for each value, can it depend on the fact that I did not correctly recall the field in my template variation?
<?php $x=$cck->getValue('apice_collaborazione');
if (empty($x)): ?><?php else: ?>
<div>
<label><?php echo $cck->getLabel('apice_collaborazione'); ?>:</label> <?php echo $cck->renderField('apice_collaborazione'); ?>
</div>
<?php endif; ?>
I am attaching screens.
Thanks and good job
Matteo Fontana