Patch implementing multiple blocks per vocabulary and adding other than this content type option

miiimooo - July 31, 2009 - 15:58
Project:Similar By Terms
Version:6.x-1.18
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community
Description

The attached monolithic path adds two features

  • multiple blocks for each vocabulary (number is configurable): in site configuration | similar by terms there is a collapsed fieldset at the bottom of the form that allow setting how many blocks should be created for each vocabulary (and the ANY vocabulary). The blocks show up in the block configuration labeled #1, #2, #3 etc
  • added "other than current" content type option to the block configuration options. Does the opposite of same as current.

    Note: This patch will break existing similar blocks. You'll have to re-create and reconfigure them.

  • AttachmentSize
    similarterms-add-multiple-blocks-and-other-than-current-type.patch7.92 KB

    #1

    rmiddle - August 1, 2009 - 16:18

    miiimooo,

    Patch looks good for the most part. I am going to try and get this into the next version.

    Note. I hate the.

      }
      elseif

    instead of

      }  elseif

    but that part of the Drupal standard. http://drupal.org/coding-standards#controlstruct

    #2

    TKS - August 3, 2009 - 19:32

    +1 for this -- I was just about to start rooting around for ways to provide multiple blocks per vocabulary. Thanks miiimooo!

    Testing now...

    #3

    TKS - August 5, 2009 - 04:01
    Status:needs review» reviewed & tested by the community

    Both the patch and the new functionality work like a charm...

     
     

    Drupal is a registered trademark of Dries Buytaert.