1

I have an extended profile that users can purchase. When purchased, an entry is created, and tied back to the user.

The user can then log in and access the entry with the extended profile fields.

I would like to have a page that pulls every extended profile entry. This could be in the hundreds. I know Craft will limit the number it returns by default. I also know that I can pass null into the limit. limit(null)

That seems pretty risky and expensive to run. Is there a better solution? I only need the page title of each entry, so I don't need the entire entry model.

Is this a place to use elementAPI and make ajax call(s) to get all of the entries so I'm only returning the page titles?

Thank you for any suggestions!

2

You could use the {% paginate %} tag with ajax to limit the number of entries that are pulled at a time.

| improve this answer | |
  • I was going to head down the {% paginate %} route. For anyone following along, here is the SO thread I am going to use as a guide. Thank you! – Damon Jan 27 '17 at 20:05

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.