Yii Framework Forum: Yii Isotope Jquery - Yii Framework Forum

Jump to content

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

Yii Isotope Jquery Rate Topic: -----

#1 User is offline   luisa 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 31-May 13

Posted 31 May 2013 - 09:12 PM

Hi I am using the Yii isotope extension and it works really well!

However, when i first load the page all my items are bunched up. I've read that you can use the imagesLoaded function for this issue but I'm not sure where to change this option.

my widget:

<?php
$this->widget('ext.isotope.Isotope',array(
'dataProvider'=> $dataProvider,
'itemView'=>'_itemviews',
'itemSelectorClass'=>'item',
'options'=>array(), // options for the isotope jquery
'infiniteScroll'=>true, // default to true
'infiniteOptions'=>array(),
// javascript options for infinite scroller
'id'=>'wall',
)); ?>


my view file:

<div class="container">

<div class="post item">
<div class="well">

<div class="masonaryImage">
<span class="image-wrapper">
<span class="image-options">

<span class="image-icons">
<?php $this->widget('ItemLikeDislikeFavorite',array('item_id'=>$data->item_id));?>
</span>

</span>

<a href="<?php echo Yii::app()->createUrl('items/view',array('id'=>$data->item_id))?>">
<?php $dir = Yii::app()->request->baseUrl.'/uploads/'.$data->user_id; ?>
<?php echo CHtml::image($dir.'\\'.$data->image_url,"image"); ?>
</a>

</span>
</div>

<div class="info">
<div class ="item_info">
<div class ="item_data">
<i><b><?php echo $data->description; ?></b></i>
</div>

<div class ="item_data">
<?php echo $data->price; ?>
</div>

<div class ="item_data">
<b>Ends</b>
<?php echo $data->end_date; ?>
</div>

<div class ="item_data">
<?php $this->widget('CreateItemComments',array('item_id'=>$data->item_id));?>
</div>
</div>
</div>

</div>

</div>
</div>

Please help! I am new to Yii
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