Instagram Block - D7: Setup

Instructions for setting up Instagram Block

Installing

Instagram Block can be installed like any other Drupal module. More information can be found here: https://drupal.org/documentation/install/modules-themes/modules-7

Configuring

There are 2 things that need configuring, the connection to instagram and the settings for the block.

Loading an Entityform into a Block

To load an Entityform into a block, there are three ways of accomplishing this:

There is a module for that

Allows to load a specified entity form as a block.
After enabling the module, the entityforms will have an optional checkbox to make them a block.
Entityform block

Leveraging Entity API and Views

It is possible to quite easily do this using views. I got this from https://drupal.org/node/1599352#comment-7040050 , thanks @drupov

block print


$block = module_invoke('module_name', 'block_view', 'block_delta');
print $block['content'];



'module_name' = The machine name of the module (i.e. the module's folder name). This is true for core modules too, so for instance 'search', 'user' and 'comment' would all work here.



Tag-sensitive beans

If you want blocks to be shown only on pages with specific tags, this is an example implementation.

This will insert beans with the tag-field enabled into a page with similar tags.
It is assumed that both bean type and node type has field_tags.

The bean type is called tag_sensitive_block, and the code simply calls for all beans of this type and collects those that share a tag with the current node. Then it inserts $max_beans beans into the first and second sidebar, switching between them after each insert.

Block to encourage deep linking to your site (D7)

One of your most difficult jobs as a site administrator is soliciting inbound links to boost your traffic and your search engine position. Deep links, in context, are the most valuable.

Using the 'Path of Least Resistance' philosophy, provide users with link text at the bottom of every page using the following code snippet (D7) in a block.

Add fields to a block [D7]

This documentation is written for the 7.x-2.x version of Display Suite.

Display Suite allows you to put certain fields inside a region that will be rendered as a block. This can then be managed via the Drupal core block administration.

Pages

Subscribe with RSS Subscribe to RSS - block