Active
Project:
Blog Client
Version:
master
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2004 at 01:28 UTC
Updated:
8 Aug 2006 at 19:57 UTC
In the blog module, add an admin screen that allows you to specify an HTML template to use when hitting the "blog it" link.
Here is my current template, and you can view a styled example here.
if ($nid && $blog = node_load(array("nid" => $nid))) {
$node->body = "<blockquote>". $blog->body ."\n<cite>". l($blog->name, "node/view/$nid") ."</cite></blockquote>\n";
}
if ($iid && $item = db_fetch_object(db_query("SELECT i.*, f.title as ftitle, f.link as flink FROM {item} i, {feed} f WHERE i.iid = %d AND i.fid = f.fid", $iid))) {
$node->title = $item->ftitle . ": " . $item->title;
$node->body = "<blockquote>". check_output($item->description) ."\n<cite><a href=\"$item->link\">$item->ftitle: $item->title</a></cite></blockquote>\n";
}
Comments
Comment #1
boris mann commentedI still like this feature. But, perhaps more appropriate for the Blog Client module....so actually take this functionality out of the blog module in core completely.
Re-assigning to Blog Client.