This is very impressive. However, there is no link to each node. In the real world, people always want to click the node name to get the article in the content page

Comments

mathieu’s picture

It is possible, but it need a little work...

Here's the recipe :

  1. define a flexinode to define a node with a field that contains the data to display;
  2. figure out (by looking at the data in the database) what's the flexinode field name for that field (should be something like "flexinode_2")
  3. go into taxonomy_ticker.module and uncomment & modify the code that's in there (look out for some commented code ... you should see "flexinode_2" in there already). Here is the line you need to modify : $block .= "<div class=\"scrollerContentItem\"><p>$node->flexinode_2</p></div>";

We coded this module for that specific need and we got it to work... but we were in a hurry, which explains (although it doesn't excuse) why we hardcoded the flexinode_2 field.

I hope I'm not forgetting anything, that was last autumn... I also hope that flexinode hasn't changed too much in 4.7.

I would be very grateful to anyone providing some clean code for all of this.

mathieu’s picture

Oops, I just re-read your post ... and I just understood the problem. You're right, I'll look into that...

mathieu’s picture

Assigned: Unassigned » mathieu
Status: Active » Fixed

Fixed by http://drupal.org/cvs?commit=34175 ... fixed in cvs and 4.7.

oweowe’s picture

Thank you and it works!
Three more thing, hopefully not too picky:
1. The block size is not adjusted according to the item no. set in the admin->setup section.
2. The block name is not adjusted, always shows "Ticker".
2. Is it possible we can build more than one Ticker block based on the taxonomy selected?
Thanks again.

Anonymous’s picture

Status: Fixed » Closed (fixed)