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

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started