Difference between revisions of "Gallery3:Modules:albumtree" - Gallery Codex
Personal tools

Difference between revisions of "Gallery3:Modules:albumtree"

From Gallery Codex

(Customization)
(Customization)
Line 40: Line 40:
  
 
== Customization ==
 
== Customization ==
 +
=== Root album selectable ===
 
The root album is not select-able when using the select option (drop-down)  so: <br />  
 
The root album is not select-able when using the select option (drop-down)  so: <br />  
 
Edit gallery3/modules/albumtree/views/albumtree_block_select.html.php change
 
Edit gallery3/modules/albumtree/views/albumtree_block_select.html.php change
Line 46: Line 47:
 
     <select onchange="window.location=this.value">
 
     <select onchange="window.location=this.value">
 
     <option value=""><?= t("Choose a Destination...") ?></option>
 
     <option value=""><?= t("Choose a Destination...") ?></option>
-----------------
+
=== Title removal ===
 
If you want to remove the title of the block you can add:
 
If you want to remove the title of the block you can add:
 
     #g-albumtree h2 {
 
     #g-albumtree h2 {
Line 52: Line 53:
 
     }
 
     }
 
to the view.css file of the theme you are using or if your theme has a custom.css use it.
 
to the view.css file of the theme you are using or if your theme has a custom.css use it.
-----------------
+
=== Title change ===
 
If you want to re-title the block you can use the language interface or you can edit the code manually:<br>
 
If you want to re-title the block you can use the language interface or you can edit the code manually:<br>
 
Edit in albumtree/helpers/albumtree_block.php
 
Edit in albumtree/helpers/albumtree_block.php
     $block->title = t("Album Tree");  
+
     $block->title = t("Album Tree");
 +
=== Open to selected node ===
 +
About line 393 of the albumtree_block_dtree.html change
 +
  albumTree.config.useCookies = false;
 +
to
 +
  albumTree.config.useCookies = true;
 +
 
 +
 
  
 
[[Category:Gallery 3:Modules|album_tree]]
 
[[Category:Gallery 3:Modules|album_tree]]

Revision as of 10:02, 11 February 2014

Album Tree Module

Provides a block in the sidebar with quick links to all other albums. .

Description

Add a block to the sidebar with links to other albums in the gallery. It can be configured to use a dropdown/select (default) or as a crude list.

Download

This module may be downloaded from the Gallery-modules repository here. Click the appropriate zip file.

Installation

To install,

  1. extract the "albumtree" folder from the zip/rar file into your Gallery 3 modules folder.
  2. Log into your Gallery web site as an administrator and activate the module in Admin -> Modules.
  3. Add and position the block in the sidebar via Admin -> Appearance -> Manage sidebar.

Configuration

The module can be configured via Admin -> Settings -> Advanced

Configured as a dropdown selection list

Albumtree1.png


Configured as unformatted list

Albumtree2.png

Configured as a DHTML dynamic tree (like Gallery2:Modules:albumselect)

Albumtree3.png

Customization

Root album selectable

The root album is not select-able when using the select option (drop-down) so:
Edit gallery3/modules/albumtree/views/albumtree_block_select.html.php change

    <select onchange="window.location=this.value">

to

    <select onchange="window.location=this.value">
    <option value=""><?= t("Choose a Destination...") ?></option>

Title removal

If you want to remove the title of the block you can add:

    #g-albumtree h2 {
    display: none;
    }

to the view.css file of the theme you are using or if your theme has a custom.css use it.

Title change

If you want to re-title the block you can use the language interface or you can edit the code manually:
Edit in albumtree/helpers/albumtree_block.php

   $block->title = t("Album Tree");

Open to selected node

About line 393 of the albumtree_block_dtree.html change

  albumTree.config.useCookies = false;

to

  albumTree.config.useCookies = true;