No title with ImageFrame

puwtest

Joined: 2007-11-15
Posts: 30
Posted: Thu, 2008-06-19 18:00

Hi.

When I active the ImageFrame plugin and I choose one of the frame for "Album Frame" it's working, but it removes the titles of each albums.

Thanks for any response.

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 16152
Posted: Thu, 2008-06-19 19:09

That would be a feature of the theme you are using. If it detects that you are using a frame for a album it will not display the album title.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
puwtest

Joined: 2007-11-15
Posts: 30
Posted: Thu, 2008-06-19 22:23

I'm using Matrix, so I'm not sure what I can to do to fix this..

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 16152
Posted: Thu, 2008-06-19 22:45

How comfortable are you with smarty syntax?
This is the code to edit:

<p class="giTitle">
		  {if $child.canContainChildren && (!isset($theme.params.albumFrame)
		   || $theme.params.albumFrame == $theme.params.itemFrame)}
		    {* Add prefix for albums unless imageframe will differentiate *}
		    {g->text text="Album: %s" arg1=$child.title|markup}
		  {else}

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
puwtest

Joined: 2007-11-15
Posts: 30
Posted: Thu, 2008-06-19 22:49

OK. I fixed this, but I'm not sure why the code is wrote like that.. :-/

We have to find this file (/themes/matrix/templates/local/album.tpl) and change code:

Quote:
{if !empty($child.title)}
<p class="giTitle">
{if $child.canContainChildren && (!isset($theme.params.albumFrame)
|| $theme.params.albumFrame == $theme.params.itemFrame)}
{* Add prefix for albums unless imageframe will differentiate *}
{g->text text="Album: %s" arg1=$child.title|markup}
{else}

{/if}
</p>
{/if}

to this code:

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

{/if}
</p>
{/if}

Login or register to post comments
puwtest

Joined: 2007-11-15
Posts: 30
Posted: Thu, 2008-06-19 22:51

Thanks ;) You've been faster than me..

Login or register to post comments