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

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started