Is there something special I need to be doing to add an Instance of a Views block?
Using Views 6.x-2.0-rc1
1) I created a Views block (the View has Row Style: field - its a list of 3 fields randomly pulled from CCK nodes). The Views block displays just fine display via the normal block settings etc.
2) settings/ddblock/settings - I add the View block (tick the box, click submit) - I have to add some content types here also.
3) settings/ddblock/instances - the block does not appear to be listed - just "views: dblock-block" appears in the drop list
I suspect my question is 3 part.
a) does the module even support Views in this way
b) am I overlooking something, in which case can you give me some guidance
3) or is this a bug somewhere, either in ddblock or views
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | ddblock-fix-adding-views-block-311352-2.patch | 774 bytes | ppblaauw |
| #1 | ddblock-fix-adding-views-block-311352-1.patch | 1.55 KB | ppblaauw |
Comments
Comment #1
ppblaauw commentedJeff,
Answers on your questions
a) Yes, the dynamic display block module supports views in this way. In the next version you can even theme the different fields of the view you use to make advanced slide shows.
b) You use the functionality in the right way
c) It's a bug in the ddblock module.
If you use views don't forget to set the container to the tag or class you want to cycle.
Bug explanation:
The views module doesn't use a number for the delta of a block but the name of the view, then the view type and a number. (e.g topics-block_1).
I used an underscore in some explode functions to separate module name delta and block title. This causes views not to be shown well in the lists.
I now use a colon (:) as the separator and it should work well
Attached is a patch to fix the problem
Thanks for reporting.
Comment #2
Jeff Burnz commentedGreat stuff, thanks for the rapid response. I should have a chance to test the patch over the next couple of days, will report back.
Comment #3
jsheffler commentedI was likewise having trouble adding a Views block, even after applying the patch. One more change needs to be made. The underscores need to be changed to colons in ddblock.admin.inc, line 276, too. The resultant line should be
$options[$block['module'] .':'. $block['delta'] .':'. $block['info']] = $block['module'] .' - '. $block['info'];I hope that helps.
Comment #4
ppblaauw commentedJohn,
Thank you very much. Missed that one.
Here is the additional patch.
Philip
Comment #5
ppblaauw commentedPatch applied to version RC2