Yii Framework Forum: Fancybox Multiple Images - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Fancybox Multiple Images Making Gallery Rate Topic: -----

#1 User is offline   Belzika 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 07-April 13

Posted 10 April 2013 - 12:07 PM

Hello all, I am a beginner programmer trying to learn how to use yii and it's extensions to make simple sites right now. I have downloaded the fancybox extension and it seems to work fine, here is the code:

<?php echo CHtml::link("<img src="img/dog"/>","#photo", array('class'=>'gallery')); ?>
<div style="display:none">
<div id="photo"><img src="img/dog" /></div>
</div>
<?php

$this->widget('application.extensions.fancybox.EFancyBox',array(
'target'=>'a.gallery',
'config'=>array(
'titleShow' => true,
'scrolling' => 'yes',
'transitionIn'=>'fade',
'transitionOut'=>'fade',
'titlePosition'=>'outside'

)
)
);
?>

However I find now I am stuck. I cannot find a way to add more photos to the extension to make mini gallery. I have tried copying the code and posting it below however even if I change the image it will only use the image from the first array of fancybox. Please help, thank you
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users