Doc suggestion: how to extend fiber with news items #51

Closed
reinout opened this Issue Jan 17, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@reinout

reinout commented Jan 17, 2012

The advanced usage doc has a short section on "using a news template and showing newsitems there", but not how to actually integrate it. You probably have a couple of examples lying around, so perhaps you could show some sample code?

Newsitems are a good example. Some of the questions I have after reading the advanced usage doc:

  • Newsitem as completely separate models? Or subclass of Page or ContentItem? Should it contain contentitems?
  • Can you hook it up somehow in the nice edit interface? Or is that out of scope for fiber?
  • How to inject a list of most recent newsitems in a fiber page? Should you do it with a template or can you also do it as a contentitem?
@dbunskoek

This comment has been minimized.

Show comment Hide comment
@dbunskoek

dbunskoek Jan 31, 2012

Contributor
  • NewsItem as completely separate models, as in accordance with the Django Fiber philosphy of "don't take over projects"
  • Hooking it up with the nice admin interface is something we are working on right now. We've got a proof of concept (read: hack) working which does this, but it isn't ready for primetime yet.
  • And, I usually don't inject a list of most recent newsitems into a Fiber page, I do it the other way around: I inject a Fiber page into the context of the Django view that's responsible for showing the list of most recent newsitems (also in line with the Django Fiber philosophy). I'll do as write-up soon of some more advanced use-cases. This 'll be on the list as well :)
Contributor

dbunskoek commented Jan 31, 2012

  • NewsItem as completely separate models, as in accordance with the Django Fiber philosphy of "don't take over projects"
  • Hooking it up with the nice admin interface is something we are working on right now. We've got a proof of concept (read: hack) working which does this, but it isn't ready for primetime yet.
  • And, I usually don't inject a list of most recent newsitems into a Fiber page, I do it the other way around: I inject a Fiber page into the context of the Django view that's responsible for showing the list of most recent newsitems (also in line with the Django Fiber philosophy). I'll do as write-up soon of some more advanced use-cases. This 'll be on the list as well :)

@dbunskoek dbunskoek closed this Nov 1, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment