Welcome, Guest
Username: Password: Remember me

TOPIC: Grid and Flypage again

Grid and Flypage again 21 Oct 2012 09:46 #4685

Hi,
i know that kind question was createat several times. But i can't find an defently answer.
The most answers i has readed was " there is custome code to need developed"

Can some show me an example the combine a grid view and a flypage on one view ?
I'm not a programmer as well.

Greetings
The administrator has disabled public write access.

Re: Grid and Flypage again 21 Oct 2012 17:21 #4686

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
Well, just take the two bricks into the view
The administrator has disabled public write access.

Re: Grid and Flypage again 21 Oct 2012 17:38 #4687

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
@VeCrea
The Fly works only on item layouts.

Because a fly is filled up with the values of an item (a row).

So all you have to do is to create this fly on another layout.


Then, you will have to code a little bit :
- First, you must know wich item you choose to show
- Then, you have to call the layout directly from the collection layout.

I do not have time now to explain you all the basis if you are not developper.

It is not difficult but before, you must understand how the templates files (tmpl/) are called through the view class.

in the displayXxxx() function of the collection view, paste almost all the source coming from the other displayXxxx() of your other layout (item).

But carefull what you keep and what you no not copy. You must understand what you are doing.


Then, move and change the name of your brick file (tmpl/xxxx_fly.php) :
- Change the xxxx for 'default' (the default collection layout)
- Move this file to the collection view directory (instead of item view directory where it is now)


Remove the temporary created item layout (with the fly only) :
- displayXxx() function
- tmpl/
- ...etc

I know it is not very clear this time, but I am in hurry.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.168 seconds

Get Started