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

  I found "cook" two days ago. Played around with it for a day and then within a day got rid of two legacy applications in IBM Lotus Domino Notes and replaced them with "cook". It was really easy. A piece of cake. Actually it was even easier than cooking. Cooking involves more work than developing with "cook". What can I say about "cook"? Great application great price for what it delivers great forum with a lot of information and fast responses active and friendly community fast forward moving development cycle So what should I say "Monsieur Le Cook"? Keep the good work going it will lead to success. Having become a paying member in the words of Edith Piaf may I say ..... non rien de rien ... je ne regrette rien. Vive La France.
FK (JED)
         

Get Started