Hello there,
I'm implementing a "news system" on a site and I need a ticker to display not only an explicit list of nodes but all nodes of type "news", so that there's no need to edit the ticket block every time a news is submitted.
I've written this small patch that lets the user configure the ticker so that:
- if the user provides a content-type in the "nodes" area, then all nodes of that content-type are displayed by the ticker block
- if the user provides a list of nids than the ticker behaves as usual
it's a bit quick&dirty, maybe you can improve adding a filter that loads only published content or maybe a drill-down menu to choose the content-type instead of a blank textarea, or even a better use of Drupal's APIs and so on..
hope this helps,
Maurizio
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | ticketyboo.module.patch | 878 bytes | mauriziopinotti |
| ticketyboo.module.patch | 876 bytes | mauriziopinotti |
Comments
Comment #1
mauriziopinotti commenteda little bug, disregard the old patch in favor of this one :)
Comment #2
Steve Lockwood commentedThanks for the patch twist3r. I have incorporated it into a new release. I've changed the approach slightly so you can choose whether you are selecting by node, node type or taxonomy.