Any action here? Reading from views, or customizing output?
yountod - October 10, 2009 - 18:57
| Project: | ScrollText |
| Version: | 6.x-1.0-alpha1 |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Just pinging the group here to see if anything's going on re: reading from views instead of hitting the DB directly, etc...
FWIW, I added the ability to at least include the body of the target nodes, I'm not a module developer (yet) so don't yell at me for posting this right here? I know someone will benefit from it, I see the usage statistics growing for this mod.
I changed the $sql line to look like this:
$sql = "SELECT n.title, n.nid, n.vid, v.vid, v.body FROM {node} n, {node_revisions} v WHERE n.status = 1 and n.type IN ($scrolltext_nodetype) and n.vid = v.vid "
."ORDER BY n.created DESC LIMIT $scrolltext_count";and then changed the output line to:
$block['content'] .= "<font style='$scrolltitle_format'>$data->title</font><br><font style='$scrolltext_format'>$data->body</font>";Now I just have to find out how to create and connect the CSS "$scrolltitle_format" I referenced.
