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

TOPIC:

Collection and item view on the same page 30 Nov 2016 17:15 #14773

  • vlemos
  • vlemos's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 295
  • Thank you received: 41
Hey cooks, was it here that someone was asking about displaying a collection and item view on the same page? Thx

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

Collection and item view on the same page 30 Nov 2016 21:22 #14779

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
I think you can base your page on the list context because it contains more functionalities than the item view.
Then, just add in your template file the rendering of a item in a sub-template file.
The view class will load the required datas with a item model instanced for that.

These are only the baselines.
To render a HTML template, you can create a layout file (used with JLayout class). It permits to render a headless template file. So you can call the HTML anywhere.
I really like the layouts files. I think Cook will use them much more. (Agility)
layouts/
Coding is now a piece of cake
The following user(s) said Thank You: vlemos

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

  • Page:
  • 1
Time to create page: 0.102 seconds

Amazing Tool !
And only tool I know that allows complete Scaffolding in terms of component creation. It really saves loads of time (actually much more than that). Simple architecture enables quick and painless changes at any time. Code is clean and consintent. It's just... what's the word... neat! :) Great work! You should definetely try this one!

pi_wo (JED)
         

Get Started