FYI - A simplified version

Alan D. - October 15, 2009 - 04:24
Project:Node As Block
Version:6.x-1.x-dev
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I just tried the dev version and I got way too many errors to consider this for a live site that I was developing. So I stripped this down to its bare bones and extended the functionality slightly. I thought that I would share as it may guide you away from trying to mimic the block.module within the nodeapi hook.

I'm a real believer if the KISS principle!

AttachmentSize
snb.zip3.71 KB

#1

Alan D. - October 15, 2009 - 04:26

PS: I renamed it to snb or "Simple node block" to keep a clean namespace. I have no intentions of maintaining / releasing this as a seperate module as it is a 90% overlap with this project!!

#2

GiorgosK - October 15, 2009 - 14:49

I installed the dev version a while ago and it works like a charm
perhaps an other installed module was at fault ??

#3

Alan D. - October 15, 2009 - 23:23

No, the issues were simply due to the module trying to mimic the block functinality inside the node form. There were at least 3 different issues, all stacked one on top of each other, all related to the direct integration of the module with the block system. It was that latest dev version :)

Anyway, all of I was looking for was a node for a block, with minimal configuration options at the node level. This was one of the three node block modules that provided that, but a stripped down version was all that I needed. I guess that was what the early module provided, and was probably bug-free c/f the dev version. This was a push to say that less is more sometimes!

 
 

Drupal is a registered trademark of Dries Buytaert.