[OJS 3.1.1.4] thumbnails in homepage

Hi everybody
is it possible to show on the home page the thumbnail and the summary inserted in the setting of the journal?
To understand these:

thumb
28

Thanks for support.
Bye
Tiziano

Hi @Tiziano,

On pages where you have $journal variable assigned (like index journal page), you can do something like: $journal->getLocalizedSetting('journalThumbnail'); I mean inside Smarty templates.

Hi @Vitaliy,
I tried to do that:

{assign var=“thumb” value=$journal->getLocalizedSetting(‘journalThumbnail’)}
{if $thumb}
<img class=“media-object” src="{$journalFilesPath}{$journal->getId()}/{$thumb.uploadName|escape:“url”}">
{/if}

but it makes a error for me, do you have any suggestions to correct me?

Thanks for help!
Bye
Tiziano

Hi @Tiziano,

For the index journal page you should use $currentJournal: https://github.com/pkp/ojs/blob/master/templates/frontend/pages/indexJournal.tpl#L10
Once again, it depends on the particular page (Smarty template) and assigned variables to it.