Inserting a view block doesn't seem to work.

[block:views=events-blocks]

inserting views can be done with

views_embed_view("events", "block",arguments))

Comments

kingfisher64’s picture

Could you give an example of the following statement.
views_embed_view("events", "block",arguments))

I'm looking to embed a custom view into the content. On hover of the configure link of the block I wish to embed I get:
?q=admin/structure/block/manage/views/cloud_carousel-block_1/configure

What would that syntax look like in your views_embed_view("events", "block",arguments)) format?

Thank you

mlsamuelson’s picture

If Insert Block tags aren't working, I'd wager you haven't enabled the Insert Block filter on your input format. See INSTALLATION in the README.txt for the specifics on that.

guodskrap’s picture

Post removed

guodskrap’s picture

I'm looking to embed a custom view into the content. On hover of the configure link of the block I wish to embed I get:
?q=admin/structure/block/manage/views/cloud_carousel-block_1/configure

What would that syntax look like in your views_embed_view("events", "block",arguments)) format?

The Insert Block format would be:

[block:views=cloud_carousel-block_1]

liembo’s picture

How do you pass arguments to the views block?

markosaurus’s picture

I have the same issue with version 7.x-1.x-dev.

I have a block which is generated by views and from what I can see in the INSTALL section of the README.txt, all I need to do is the following;

1.) Install and enable the module (done)
2.) Enable the "Insert block filter" for the inputs you want to use (enable for all for testing purposes)
3.) Find the module and delta of your block from the blocks overview page, in this case it's this (admin/structure/block/manage/views/bites_block-block/configure)
4.) Call the block you want from within your content in this format - [block:views=bites_block-block]

I have read and followed the instructions, so as far as I can see, it may actually be a bug? I am assuming that we can still call views blocks in for the D7 dev version?

Any help appreciated.

Thanks,

Mark

tfranz’s picture

Issue summary: View changes

You should use another module for that: https://www.drupal.org/project/insert_view

Alexandre360’s picture

+1 to this. The problem with insert block is that it does not support arguments.

And the problem with insert views is that it doesn't respect the block markup (even if the views is a block views), it does not display contextual links neigher block title.

I didn't find any viable solution yet.

berenddeboer’s picture

Status: Active » Closed (works as designed)