[SOLVED] How can I move item title in album view???

FlyFort

Joined: 2004-11-07
Posts: 145
Posted: Sat, 2005-03-26 14:33

Hello,

How can I put the title of the album on the bottom of it???instead on te right site???

and also that dropdown menu???

Thx in advance

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-03-26 14:54

1. if you use the matrix (default) theme, create a subdirectory in layouts/matrix/templates/ layouts/matrix/templates/local/
2. copy albumBody.tpl into this subdirectory.
3. edit layouts/matrix/templates/local/albumBody.tpl

you can move the code block

	{if !empty($child.itemLinks)}
	  <select onchange="{literal}javascript:if (this.value) { newLocation = this.value; this.options[0].selected = true; location.href= newLocation; }{/literal}">
	    <option label="{if $child.canContainChildren}{g->text text="&amp; album actions &amp;"}{else}{g->text text="&amp; item actions &amp;"}{/if}" value="">{if $child.canContainChildren}{g->text text="&amp; album actions &amp;"}{else}{g->text text="&amp; item actions &amp;"}{/if}</option>

	    {foreach from=$child.itemLinks item=link}
	      <option label="{$link.text}" value="{$link.url}">{$link.text}</option>
	    {/foreach}
	  </select>
	{/if}

        {if !empty($child.title)}
          <p class="giTitle">
            {if $child.canContainChildren}
              {g->text text="Album: %s" arg1=$child.title|markup}
            {else}
              {$child.title|markup}
            {/if}
          </p>
        {/if}

a few lines above, right after <td class="{if $child.canContainChildren}giAlbumCell gcBackground1{else}giItemCell{/if}">you can switch the order of the title block and the itemLinks (foreach...) block to move the title above the options drop down list. etc.

IMO it doesn't look good the way you want it... however, you can adjust the look and the details, you can use ordinary html in this .tpl files and you can also edit the css files.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-03-26 14:57

and if you want to go back to the default look. delete your local directory.
G2 doesn't parse the .tpl files on each request, it does cache "compiled templates". that's why you have to go to yourgallery2url/lib/tools/test/ and hit the link "FlushTemplates" too.

 
FlyFort

Joined: 2004-11-07
Posts: 145
Posted: Sat, 2005-03-26 15:58
valiant wrote:
a few lines above, right after <td class="{if $child.canContainChildren}giAlbumCell gcBackground1{else}giItemCell{/if}">

The only thing I found on that page is this

<td class="{if $child.canContainChildren}gbItemAlbum{else}gbItemImage{/if}" 
            style="width: 10%">

Can't find anything else, so it doesn't work for the moment.

This adjustment, is that only for the albums and pics after the main page, or is the mainpage involved in this procress too???

Here is a direct link to my G2 http://www.militaryaircraftcollection.info/Dbase3/gallery2/main.php

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-03-26 16:11

i assumed you were running the latest G2 cvs version. The css / User Interface of G2 changed since G2 beta 1.
If you're not already running the latest version, get update your cvs version or get the current nightly snapshot from http://galleryupdates.jpmullan.com and upgrade your G2. You'll have to reapply your local changes again. It's safer to copy again the original tpl / css files and apply the changes again, there were too many changes.

And if you're running the latest version, then you're probably not looking in the right file, i guess. layouts/matrix/templates/albumBody.tpl.

 
FlyFort

Joined: 2004-11-07
Posts: 145
Posted: Sat, 2005-03-26 22:45

Got the latest version on my site as you told me, found the missing piece, but still doesn't work :cry:

But I found something more on that line

<td class="{if $child.canContainChildren}giAlbumCell gcBackground1{else}giItemCell{/if}"
	  width="{$layout.columnWidthPct}%">

I tried also every possible solution for it, but still doesn't work
:cry:

Did I do something wrong or did I forgot something???[/code]

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-03-26 22:55

that's perfect. that's the "line" or "double line" you're looking for. move the title block etc. right after this double line.

 
FlyFort

Joined: 2004-11-07
Posts: 145
Posted: Sat, 2005-03-26 23:31

Thx it works fine rigth now,

But now having problems with the left side, but therefor I joined another topic http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=23915

Thanks for the help