Confused after upgrade to b4

JoePrecious

Joined: 2005-04-06
Posts: 4
Posted: Mon, 2005-07-25 14:17

In my previous G2 install (b3) I had customised the main picture view page so that the main image displayed was a link which, when clicked, displayed the image full-screen in a new window. I believe I did this by copying the singleBoby.tpl file into a "local" subfolder and editing the relevant code.

With the new beta, everything's changed and there is no layouts folder and all the tpl files have new names. I'm assuming I need to edit the photo.tpl file within the relevant theme in the themes folder but the code seems very different and I'm at a bit of a loss as to what I need to do to get the same effect.

If anyone could point me in the right direction that would be great, or at least confirm I'm on the right track!

Thanks

Joe

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-07-25 15:08

yes, photo.tpl in themes/matrix/templates/local/photo.tpl.

it's not that different.

around

	      {if isset($theme.photoFrame)}
		{g->container type="imageframe.ImageFrame" frame=$theme.photoFrame}
		  {g->image id="%ID%" item=$theme.item image=$image fallback=$smarty.capture.fallback class="%CLASS%"}
		{/g->container}
	      {else}
		{g->image item=$theme.item image=$image fallback=$smarty.capture.fallback}
	      {/if}

add your <a href target stuff around the {g->image ...} braces.

 
JoePrecious

Joined: 2005-04-06
Posts: 4
Posted: Mon, 2005-07-25 15:37

Had to play a bit and a small change needed to my link (needed to replace "layout" with "theme") but got it working.

Many thanks!