Opened 9 years ago

Closed 9 years ago

#4263 closed (invalid)

Insert select item from a collection into templates

Reported by: alessandro.ronchi@… Owned by: jacob
Component: Uncategorized Version: master
Severity: Keywords: templates selection for
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


If I have a set of items I can only cycle them with {% for item in items.all %}.
But it don't permits to take the item n° 5 and put it into a place, the n° 2 and put in another, and so on.

It's very useful with images related to objects: if you want to make images float in particular places, a single selection would be sufficient. Now I can only add to my model a getFirstImage method, but it's a presentation problem and it's not correct to put it in models or views.

Change History (3)

comment:1 Changed 9 years ago by Ramiro Morales

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Doesn't {% items.5 %}, {% items.2 %} do what what you need?. See

comment:2 Changed 9 years ago by anonymous

Yes, you are right. I didn't knew of that.

comment:3 Changed 9 years ago by Ramiro Morales

  • Resolution set to invalid
  • Status changed from new to closed

Then I'm closing the ticket.

Note: See TracTickets for help on using tickets.
Back to Top