Need ability to modify HTML headers on blog page

po8 - December 2, 2007 - 06:33
Project:Blog Information
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Some time back I got involved with a blog aggregator (http://orblogs.com) that wants only local content. The way they certify this is by having each blog put extra HTML in the headers to give the lat/long etc of the blogger. (I think other sites also want this kind of thing.)

So I hacked blog.module to let a user put arbitrary HTML in the header of their blog page; I'd already provided for blog titles, as you do, so this was just one more thing. It was relatively easy to do, and it got me going. That was in Drupal 3.x. My blog (http://fob.po8.org/blog/bart) has been doing this more or less ever since. Take a look at the page header there to see what I mean. The stuff I added for ORblogs is nicely commented, and should be easy to find.

Ever since then, I've been carrying my patches forward. I'm really tired of it. Besides, it needs some stuff to be generally useful. It needs its own module with database install and update scripts. It also wants to be controlled by access control, since it is a potentially dangerous feature in the wrong hands.

I'm hoping you folks will fold this feature into your fine module. Then I can switch to yours and quit maintaining my own stuff. If there's any chance of this happening, and/or any way I can help, let me know.

Thanks much!

#1

po8 - December 2, 2007 - 18:01

I'm almost done implementing and testing my patch for this. I'll post it here sometime today.

#2

po8 - December 2, 2007 - 20:55

OK, here's my patch that seems to work for this. I would love to see it integrated into your tree, and to get any feedback you have. I think I'm going to create a new version of my patch to blog.module for now, though, that supports putting the blog title, description and HEAD HTML directly onto the blog page, rather than through a block. The block handling is currently not very good for this, and is a pain to configure.

AttachmentSize
bloginfo-custom-head.patch 9.11 KB

#3

mfer - December 2, 2007 - 22:57

I'll take a look at this patch.

Also, if you are looking at inserting this into the blog module you might want to instead use CCK or write a custom module that inserts in. This might be easier to maintain than a patch against drupal core.

#4

mfer - December 21, 2007 - 03:17

I'm not going to have the time to update this module in the short term. I'm no longer using it and don't have a need for it in the short term.

Does someone want to take over development and add these features?

#5

yettyn - October 15, 2008 - 21:20
Version:5.x-2.4» 6.x-1.x-dev

Moving forward to D6 but no promises at this stage. I haven't looked at the patch yet but what comes to my mind is if this isn't something that should be more theme related, have you looked in that direction? Maybe it wasn't possible in D5 but I think D6 have some improvements in this area.

Anyhow, as I am new maintainer of this module I cannot but say it's too early for me to judge if this belong to this module or not. I leave it open though and patches are always welcomed ;-)

 
 

Drupal is a registered trademark of Dries Buytaert.