Patch to display all nodes by type in a ticket

twist3r - January 9, 2009 - 11:08
Project:ticketyboo News Ticker
Version:6.x-1.1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

#1

twist3r - January 9, 2009 - 11:10

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

AttachmentSize
ticketyboo.module.patch 878 bytes

#2

Steve Lockwood - January 10, 2009 - 12:50
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

System Message - January 24, 2009 - 13:00
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.