Configurable "blog it" template

Boris Mann - March 29, 2004 - 01:28
Project:Blog Client
Version:HEAD
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

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";
    }
?>

#1

Boris Mann - August 8, 2006 - 19:57
Project:Drupal» Blog Client
Version:x.y.z» HEAD
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.

 
 

Drupal is a registered trademark of Dries Buytaert.