Welcome, Guest
Username: Password: Remember me

TOPIC: Different bricks in the same layout

Different bricks in the same layout 05 Jan 2012 00:23 #821

Is it possible to put 2 bricks in the same layout page? For example, I could create a collection layout of a details table, put the desired fields in the grid, remove the toolbar, and put a fly with some columns of the master table above the grid.

If it’s not possible, could you please advise me about the workaround I imagined: put all desired columns in the grid and then customize the generated code to remove the columns and put them as I want in the layout. Do you think there is an easier way to achieve the same result?

Thanks in advance.
The administrator has disabled public write access.

Re: Different bricks in the same layout 05 Jan 2012 07:33 #825

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Yes,
In the builder, you can add as many bricks as you want, reffering to the possible context. Means that you cannot merge a grid brick and a fly or form brick.


BUT, if you want to do this, it is extremly simple in your source code.

TODO :

- Create the bricks you want to merge, in two different layouts with Cook
- Then, in the view.html.php file, have a look on how the datas are loaded
- Have a look in the main layout file (ex: tmpl/default.php)
- Merge all this !!!

The only files you have to modify and the VIEW and the LAYOUTS.

If you have difficulties, please comment here your tries and where you block.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.081 seconds

Get Started