Personal tools

Gallery3:Modules:code block

From Gallery Codex

Contents

Code Block

Display a code block on the sidebar.
Adds 3 configurable blocks to the sidebar.
Ability to name the tilte and content of each block. Three blocks are available.

Description

Add your own html/js/php to a block in the sidebar
Ability to select what block should show on what type of page; album/collection or photo or both.

Screen shots

File:Code_block_admin.png File:Code_block_sidebar.png

Installation

  • Download the module from: http://gallery.menalto.com/node/93525#comment-331498.
  • Extract the module to the module directory of your G3 install.
  • Activate the module: Login -> Admin -> Modules. Check the box next to the module. Click update at the bottom of the page.

Usage

  • Admin -> settings -> Code Block. Edit the tile and block content as needed.
    • Only HTML is allowed for security reasons. If you need to add JS and or PHP code see Advanced usage.
  • Admin -> Appearance -> Manage sidebar. Verify that the code block is moved from the 'Available blocks' to 'Active blocks' and in the order you desire with other blocks.

Advanced usage

Edit the modules/code_block/views/code_block.html.php to add JS / PHP code.

advertisements