1

Scenario: I have a collection of projects (the channel) in a portfolio page (the template), with the title and feature image showing on each. When I click on a project, I want to have a modal box with all information about it - description, gallery of images, client, team members etc (custom fields).

My initial thought was to use AJAX to load the additional information by calling an XML template that accepted the entry id as a GET variable and returned all of the additional information. Then I wondered whether all of this additional information was already loaded in the portfolio template's database call. Are all of these custom channel fields already loaded and simply not displayed?

If they are, then I could simply create a hidden modal box for each project in the template, then show with simpler Javascript.

3

Yes, all custom fields for each entry you call via channel:entries are loaded by the template engine and ready to be parsed, so your latter idea is a good one.

| improve this answer | |
  • This is correct. – Nick Benson Jan 7 '14 at 22:40
  • Cheers for your answer (and all of your other answers on here. They've been immeasurably helpful :) ) – David Leitch Jan 7 '14 at 22:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.