Hi Matt
I tried removing
{if $coverPageAltText != ''} alt="{$coverPageAltText|escape}"{else} alt="{translate key="issue.coverPage.altText"}"{/if}, but it didn't work: "Cover page" was still there. I tried then put in a conditional that checks if $coverPagePath is set, but it didn't work neither. Finally, I managed to do it with the conditional
{if $issue->getFileName($locale)}. The code look like this now:
- Code: Select all
{if $issue->getFileName($locale)}<div id="issueCoverImage"><a href="{$currentUrl}"><img src="{$coverPagePath|escape}{$issue->getFileName($locale)|escape}"{if $issue->getCoverPageAltText($locale) != ''} alt="{$issue->getCoverPageAltText($locale)|escape}"{else} alt="{translate key="issue.coverPage.altText"}"{/if}{if $width} width="{$width|escape}"{/if}{if $height} height="{$height|escape}"{/if}/></a></div>{/if}
I had to change the code for alternative text:
- Code: Select all
{if $coverPageAltText != ''} alt="{$coverPageAltText|escape}"{else} alt="{translate key="issue.coverPage.altText"}"{/if}
by this other one (I took it from /templates/issue/archive.tpl), because it wasn't showing properly the alternate text, but "Cover image", no matter what text I introduced in the issue data.
- Code: Select all
{if $issue->getCoverPageAltText($locale) != ''} alt="{$issue->getCoverPageAltText($locale)|escape}"{else} alt="{translate key="issue.coverPage.altText"}"{/if}
Everything is working perfectly now.
Thanks a lot for your help,
Alejo