title & summary to image parameters

eliz82

Joined: 2009-11-06
Posts: 71
Posted: Thu, 2012-02-16 01:01

because of SEO reasons i want that the TITLE parameter to the image. and i want that parameter to contain title + summary of the image

so i found the code where the image is introduced in themes\matrix\templates\local\photo.tpl

{g->image id="%ID%" item=$theme.item image=$image fallback=$smarty.capture.fallback class="%CLASS%"}

and replaced with

{g->image id="%ID%" item=$theme.item image=$image fallback=$smarty.capture.fallback class="%CLASS%" title=$theme.item.title }

and it's working. i can replace with $theme.item.summary . i can put only one of them.

but i want both title and summary to appear to title parameter. any idea how to put them both ?