Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

Please Log in or Create an account to join the conversation.

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

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
Well, just take the two bricks into the view

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
@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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.070 seconds

This is what you call a component builder. I was able to master using this in a very short time and the resulting component works like a charm. Not just a basic component builder but a fully working component builder with forms fields tables all ready to go. You can make the list and item views to display in the front and back end. Also there is a great forum just starting to evolve and I'm sure this will grow very rapidly when you all realise how good this tool is.
Kevin (JED)

         

Get Started