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

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started