Project:Blog Client
Version:master
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

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.

<?php
   
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

#1

Project:Drupal core» Blog Client
Version:x.y.z» master
Component:blog.module» Code

I 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.

nobody click here