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

TOPIC:

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.

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

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

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

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

  • Page:
  • 1
Time to create page: 0.105 seconds
Great UX great performance and definitely a time saver. It only took me 10 minutes of playing around before purchasing a subscription and right now I just want to throw more money at you! I just started a new project and after just 4h I can already tell it probably saved me several days of work. I'm building a wholesale ordering system with sales rep management. I have not looked at the code yet but so far: impressive.
flip (Forum)

Get Started