Yii Framework Forum: fancybox + clistview - Yii Framework Forum

Jump to content

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

fancybox + clistview Rate Topic: -----

#1 User is offline   Reolbox 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 30
  • Joined: 13-April 11

Posted 06 December 2011 - 07:08 AM

"Hello World!"

Problem

I show a list of hotels via CListView and when a user clicks on the id number a fancybox (via widget) should pop up with a detailed view of the hotel.
I managed to get this function, BUT it only works in the first page of the pagination.

index.php view file:

<?php
$this->widget('application.extensions.fancybox.EFancyBox', array(
    'target'=>'a[rel=example_group]',
    'config'=>array(
	'autoDimensions'=>false,
	'width'=>'920',
	'height'=>'auto',
	'scrolling'=>'yes',
    ),
    )
);

?>
<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
)); ?>


_view.php view file:

<div class="view">

	<b><?php echo CHtml::encode($data->getAttributeLabel('hotel_id')); ?>:</b>
	<?php echo CHtml::link(CHtml::encode($data->hotel_id), array('view', 'id'=>$data->hotel_id), array('rel'=>'example_group')); ?>
	<br />
[.....]


What do I have to do to make this work?

Grrrrrrrreat thanks.
--
My portfolio
I am looking for dedicated backbone programmer.
0

#2 User is offline   juanandres 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 03-August 11

Posted 12 April 2012 - 09:40 PM

Hello there!
I Had the same issue and
I solved it using lightbox extension .
good luck...
0

#3 User is offline   Rohit Singhal 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 03-October 12
  • Location:India

Posted 08 October 2012 - 03:05 AM

View Postjuanandres, on 12 April 2012 - 09:40 PM, said:

Hello there!
I Had the same issue and
I solved it using lightbox extension .
good luck...


I am facing same problem,
can you please provide link of that extension...
0

#4 User is offline   joepages 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 12-November 13

Posted 14 November 2013 - 09:44 AM

Hello guys, I'm trying to do something easy but I can't find the way to do so on Yii Framework.

What I want to do, is open a fancybox frame which takes me to another create.php in another view. What I want to do is that when the user click "save" it save the information and then closes de fancybox frame that I just openned..

Here is how enable the fancybox frame:
<?php 
		$config = array( );
		$this->widget('application.extensions.fancybox.EFancyBox', array( 'target'=>'#antecedentes', 'config'=>$config,));
		echo CHtml::link('Agregar Antecedentes',array('antecedentes/create?valorpasar=$id'),array('id'=>'antecedentes'));
	 ?>


I think there should be a way to give the instruction to the button not to releoad to other page just to close thi fancybox frame.

<?php echo CHtml::submitButton($model->isNewRecord ? 'Guardar' : 'Save'); ?>


Any ideas?
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