Skip to content

navidonskis/silverstripe-content-blocks

Repository files navigation

SilverStripe Content Blocks

Scrutinizer Code Quality

Accessories for Blocks module. This repository are always up-to-date with new features of blocks.

Blocks includes

  • Content Image - block can store multiple images with sortable feature, but it required to have SortableUploadField dependency installed. Also have a nice feature like to choose the template for your layout.

    • Features
      • Upload many images with sorting each ones
      • Choose a template for layout
  • Google Maps - block with interactive google maps at the CMS. Can be set multiple markers, detecting zoom and position coordinates. Can be set global marker image or each marker individually.

    • Features
      • Set a global marker image or individually for each marker object
      • Interactive set a google maps position (zoom level, coordinates)
      • Delete or add new markers
  • Slider - block of slider which hold different types (video, image slider types).

  • Video - block of video. In this video block can be added Vimeo, Youtube URL links, or upload your own video to the server.

Global usage

  • If you did not want one of those accessory blocks, simple set the blocks configuration
    BlockManager:
      themes:
        YourTheme:
          disabled_blocks:
            - BaseBlock # this should be always set
            - ContentImageBlock # this extra block to be hidden

Contributing

To contributing a module read here for compliance with the rules and understand how it's working. If you have any questions, feel free to ask maintainer of Donatas [email protected].

TODO

  1. Each class should be in namespace, but waiting when silverstripe-gridfieldextensions their support the namespace'd class'es when creating a new block.