Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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 CreditAttribution: 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.