Closed (fixed)
Project:
Insert
Version:
7.x-1.0
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 May 2011 at 07:45 UTC
Updated:
25 May 2011 at 20:21 UTC
First: THANKS for this Insert module. This saves a lot of time when uploading images into content types.
Question: is it possible to enable the Insert module on Blocks? Since Blocks can be set to accept Full/Filtered HTML input, I am led to expect that I should be able to insert images into Blocks as well.
Thanks.
-Tony
Comments
Comment #1
quicksketchUnfortunately I don't think blocks are capable of using Insert because you can't add fields to them. If you were able to add a File or Image field to a block, Insert would work with them. But since you can't add a field to begin with, Insert doesn't have anything to attach itself to. Insert can be used on other types of data such as fields on comments or Taxonomy terms, and if Blocks ever do support fields (or you switch to using a replacement blocks module that supports fields), then Insert will work with them too.
Comment #2
tonychung commentedThanks quicksketch.
Comment #3
quicksketchComment #4
nico059 commentedHi,
If you want to give control to your user, you could use http://drupal.org/project/nodesinblock
But, if it's only for you (developer), juste a little snipet like this in your block
- create a normal node (with the insert file etc ...)
- remenber the node id
- activate the "php filter" module
- create a new block, and select the format "php filter"
- And insert the snipet:
Hange
Comment #5
quicksketchI'd probably recommend http://drupal.org/project/nodeblock over that solution, which simply uses nodes for blocks so you have their full capability. No manual PHP code required, which I wouldn't recommend.