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
  • Online
  • 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.089 seconds

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started