CTools Plugins without Panels, step by step

CTools plugins and Panels are great and play together very well. It's almost as if they were made for each other--weren't they? However, I recently worked on a project where CTools plugins were an excellent solution for some of our needs, but Panels were verboten. I didn't find much documentation on that, so this page provides a detailed how-to for incorporating a CTools plugin in a regular Drupal block. It also shows how to pass arguments to a plugin render callback.

Individual Sidebar Content on each page

Hi Community,
I'm despairing with a drupal problem. I've got a client who was Typo3-user before and already hat experiences with that system. He wants to add different and individual sidebar content from page to page like he did in Typo3.
I don't have an idea how to realise that. Does anyone have an idea?

activedesigner

Taxonomy upgrade extras: 

Guidance on Block

So I have used blocks in the past for basic functionality but I am trying to make so that if a block is apply to a sidebar the main content allows for it to float right. I am using Bootstrap framework layout. So what I am really looking for, I believe, is a conditional statement saying "if the sidebar block is not null then change the content layout to 'div class="col-md-8" ' and display the sidebar as "div class="col-md-3" " and if null leave content div as col-md-12.

Taxonomy upgrade extras: 

Managing custom blocks

The Custom Block module allows you to create blocks of content, which can be placed in regions throughout the website. Custom blocks can have fields. Once created, custom blocks can be placed like blocks provided by other modules

Creating and managing custom block types

Users with the Administer blocks permission can create different custom block types, each with different fields and display settings, from the Custom block types page. The Custom block types page lists all of your created custom block types, and allows you to edit and manage them.

Create a simple block view

Views allows you to create listings of data on your site as blocks which can be placed in regions on your site.

d8preview-views-block.png

  1. Navigate to admin/structure/views.
  2. Click Add New View. This brings you to a Views creation wizard to ensure you have the correct basic settings for your view.
  3. In the View Name field enter a name for the view.
  4. Click Description and enter a description.
  5. Under View settings > Show, select one of the following options:
    d8-views-settings-terms.png
    • Comments Sort options can be specified.
    • Log entries Sort options can be specified.
    • Files Sort options can be specified.
    • Content Content type, tags and sorting options can be specified.
    • Content Revisions Sort options can be specified.
    • Taxonomy Terms Tag type and sorting options can be specified.
    • Users Sort options can be specified.

Add fields to a block

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.

Note: this works only for custom view modes of nodes. Preprocess fields will not be visible.

To add fields to a block:

  • Enable the sub module Display Suite Extras at Administration > Modules (admin/modules)
  • Go to Administration > Structure > Display Suite and click the secondary tab "Extras" (admin/structure/ds/extras)
  • Select the vertical tab "Others"
  • Check "Region to block"
  • Click "Save configuration"
  • Go to Administration > Structure > Display Suite (admin/structure/ds/layout) and choose "manage display” for the desired content type (e.g., "Article").
  • Select a custom view mode (e.g., "Compact teaser")
  • Ensure a layout is selected in the vertical tab "Layout for … in ..."
  • Click "Save"
  • Choose the vertical tab "Block regions"
  • Enter a name for the region that will be rendered as a block
  • Click "Save"

The region is now available in the manage display screen and you can assign fields to it.

Pages

Subscribe with RSS Subscribe to RSS - blocks