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

TOPIC:

Best way to add a collection to item brick 11 Oct 2017 13:34 #15363

  • dyvel
  • dyvel's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 200
  • Thank you received: 11
Hi

I'm building a component, that in simple terms as an example has 2 tables: "users" and "users items". "users items" are connected to "users" through a FK.

On my user item page, I have created a new tabbed brick, where I would like to display "users items".

What would be the best way to achieve this?
Thanks :-)

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

Last edit: by dyvel.

Best way to add a collection to item brick 11 Oct 2017 20:16 #15366

- put the item form in as a brick, and in the options set "tab it"
- put the item fly in as a brick, and in the options set "tab it"
- fork the views/users/tmpl/item.fly.php
- in there, load the items as a grid

Something like that

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

Best way to add a collection to item brick 12 Oct 2017 07:50 #15368

  • dyvel
  • dyvel's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 200
  • Thank you received: 11
Hi Romkabouter

I've already created my tabbed view (form and fly pages). I've dragged my pivot table to the fly page, and expanded the relation in my model ormLayout... So I see the relevant data in my object on the fly page now.
But is this the way to do it - the best way?

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

Best way to add a collection to item brick 12 Oct 2017 08:19 #15369

I think the best way is when you keep the forking to a minimum, so probably yes :)

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

  • Page:
  • 1
Time to create page: 0.085 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