Translating customerized code from G1 to G2

xinca
xinca's picture

Joined: 2002-09-28
Posts: 86
Posted: Mon, 2005-05-23 10:48

I have the following customerized code made on view_photo.php and view_album.php:

<?
    preg_match("/(.*?);(.*);(.*)/", $gallery->album->getKeywords($index), $matches);
    $keyid = $matches[1];
    $keydes = $matches[2];
    $keyprice = $matches[3];
?>

What do I write on G2 albumBody.tpl for the same result?

Thanks :wink:

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-05-23 14:48

{$layout.item.keywords} and {$child.keywords} have the full strings.. see smarty.php.net for more info.

 
xinca
xinca's picture

Joined: 2002-09-28
Posts: 86
Posted: Tue, 2005-05-24 09:45

{$layout.item.keywords} and {$child.keywords} have the full strings.. see smarty.php.net for more info

I am incapable to understand those high level talks. Any kind heart can help me translating the G1 code into G2?