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.055 seconds

This Component Generator is the REAL component generator. This tool is very easy to use and in a matter of minutes I was building a fully working extension. I was amazed with the end result... worth every cent...
Griiettner (JED)

         

Get Started