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

  I am so so so looking forward to see how far this can go. Seems like the skies the limit at the moment.
Kevin (Forum) 

Get Started