Menu Tree help

amarks
amarks's picture

Joined: 2006-12-14
Posts: 42
Posted: Fri, 2006-12-15 23:06

Hi Im Adam and Im starting to use your gallery2 on my clients websites. Im starting to slow figure out what to edit and what not to edit. What Im asking for is help on setting up the dtree that I have seen on gallery members website
website. I went to the creators website but theres no help on how to set it up. Has anyone else used this TREE MENU and if so I'd appreciate it.

Thx-
-In A Digital Paradise-

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 17373
Posted: Sat, 2006-12-16 03:37

Adam,
Edit album _> theme tab -> 'Blocks to show in the sidebar' add 'album quick links [DHTML]'

That will give you a DHTML menu of the albums. There is also some options for the menu as well.

Dave
____________________________________________________
Blog with G2 || Gallery Frames / Mods || G1 Test Gallery

Login or register to post comments
amarks
amarks's picture

Joined: 2006-12-14
Posts: 42
Posted: Sat, 2006-12-16 06:30

Thx for the Re: Floridave I have the carbon blackjack theme I switched the theme tab blocks and it added something I didnt expect and not what Im looking for.
Im sending you an image which shows the dtree in action and the actual code in the in HTML. HTML added the light purple area as javascript but every time I place it in the album.tpl it does not appear on my gallery page. Do you know where I need to add this code destroydrop.com for the downloaded file

theme.tpl added
<head>
<link rel="stylesheet" type="text/css" href="dtree.css"/>
<script type="text/javascript" src="dtree.js"></script>
</head>

album.tpl added

<div class="dtree">
<p>
<a href="javascript: a.openAll();">open all</a> |<a href="javascript: a.closeAll();">close all</a>
</p>

<script type="text/javascript">
a = new dTree('a');
a.config.useCookies=true;
a.add(0,-1,'Tree example','javascript: void(0);');
a.add(1, 0,'Node 1','javascript:void(0);');
a.add(2, 1,'Node 2','javascript:void(0);');
a.add(3, 0,'Node 3','javascript:void(0);');
a.add(4, 2,'Node 4','javascript:void(0);');
a.add(5, 3,'Node 5','javascript:void(0);');
a.add(6, 4,'Node 6','javascript:void(0);');
a.add(7, 2,'Node 7','javascript:void(0);');
a.add(8, 6,'Node 8','javascript:void(0);');
a.add(9, 0,'Node 9','javascript:void(0);');
a.add(10, 4,'Node 10','javascript:void(0);');
a.add(11, 5,'Node 11','javascript:void(0);');
a.add(12, 8,'Node 12','javascript:void(0);');
a.add(13, 0,'Node 13','javascript:void(0);');
a.add(14, 8,'Node 14','javascript:void(0);');
document.write(a);
</script>

</div>

-In A Digital Paradise-

AttachmentSize
dtree-snap.jpg24.79 KB
Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 17373
Posted: Sat, 2006-12-16 15:53

1. Your first post showed me the DHTML menu that we have (also called dtree) in the sidebar of matrix theme.
2. Now you tell me you have a

Quote:
the carbon blackjack theme

a third party theme, that I have not used.
Did you try the matix theme with the tree in the sidebar?
3. Do you want the albums to show in the DHTML tree or some other links?

4. I am not going to coe this for you. You can try to read up on adding javascript to .tpl files:
Surround your javascript with {literal}{/literal} tags. See the smarty docs.
http://smarty.php.net/manual/en/language.function.literal.php

____________________________________________________
Blog with G2 || Gallery Frames / Mods || G1 Test Gallery

Login or register to post comments
amarks
amarks's picture

Joined: 2006-12-14
Posts: 42
Posted: Sat, 2006-12-16 21:16

I should of looked closer. Im using a A third party Theme that does not Support dTree. I am going to find a theme that supports this feature then I could figure it out. I thank you for your help and very quick repsonse.

-In A Digital Paradise-

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 17373
Posted: Sat, 2006-12-16 21:48
Quote:
I should of looked closer

I assumed that you knew that you could add block to various views and locations.

Well I tried the carbon theme (although it was to g2.2)
You can add the DHTML tree on the album page:
see and example:
http://langleycom.com/gallery2/v/Album_list/

Dave

____________________________________________________
Blog with G2 || Gallery Frames / Mods || G1 Test Gallery

Login or register to post comments
amarks
amarks's picture

Joined: 2006-12-14
Posts: 42
Posted: Sat, 2006-12-16 22:06

I knew that I can add blocks but which one?
I dont see 'album quick links' in the list.
Images attached of carbon admin theme.

-In A Digital Paradise-

AttachmentSize
photopages-block.gif12.02 KB
albumpages-block.gif11.25 KB
sibebar-block.gif11.03 KB
Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 17373
Posted: Sun, 2006-12-17 00:19

Do you have the album select block module activated?

____________________________________________________
Blog with G2 || Gallery Frames / Mods || G1 Test Gallery

Login or register to post comments
amarks
amarks's picture

Joined: 2006-12-14
Posts: 42
Posted: Sun, 2006-12-17 02:50

I have seen others ask for the module but I have no idea where it is or how to download it along with activating the module. My next question is where and how to activate the album select module?
You have gave me great support floridave.

-In A Digital Paradise-

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 17373
Posted: Sun, 2006-12-17 03:06

site admin -> modules
if you dont see the album select module in the 'blocks' section you will need to download it:
http://codex.gallery2.org/index.php/Gallery2:Download#Modules

Dave
____________________________________________________
Blog with G2 || Gallery Frames / Mods || G1 Test Gallery

Login or register to post comments
amarks
amarks's picture

Joined: 2006-12-14
Posts: 42
Posted: Sun, 2006-12-17 03:15

thanks again, for your support. I will not log on till Monday and will install the module then. thanks again and hope to be in contact next week.

-In A Digital Paradise-

Login or register to post comments
umbroboy

Joined: 2006-01-22
Posts: 62
Posted: Mon, 2006-12-18 22:33

Hello,

i try the same with the slider theme.

I want to include the datatree block in the template theme. But i found this code:

{g->block type="albumselect.AlbumTree"}

that have i inserted in the tpl file, but i cant see it.

So what can the problem be?

thanks
marcus

Login or register to post comments
amarks
amarks's picture

Joined: 2006-12-14
Posts: 42
Posted: Mon, 2006-12-18 23:33

umbroboy Hi,
What floridave guided me to do is download the album select from the downloads section in Gallery and copy and paste the album select folder into the main module folder using FTP (I use Dreamweaver). Then Log into your admin and install/configure the album select. Now you are ready to add the {g->block type="albumselect.AlbumTree"}
into your .tpl. I have found that I could place this code either in the sidebar.tpl or the album.tpl right below the first <class="BreadCrumb-1"> or somewhere below that. Dont forget to

Quote:
Edit album _> theme tab -> 'Blocks to show in the sidebar' add 'album quick links [DHTML]'

Once you add <div class="block-albumselect-AlbumTree gbBlock">
then dtree will automatically appear in your gallery
dtree

-In A Digital Paradise-

Login or register to post comments