Download & Extend

Patch to display all nodes by type in a ticket

Project:ticketyboo News Ticker
Version:6.x-1.1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

AttachmentSize
ticketyboo.module.patch876 bytes

Comments

#1

a little bug, disregard the old patch in favor of this one :)

AttachmentSize
ticketyboo.module.patch 878 bytes

#2

Status:needs review» fixed

Thanks 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.

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.