diff --git a/templates/frontend/components/aside.tpl b/templates/frontend/components/aside.tpl index 3633899..fe0731a 100644 --- a/templates/frontend/components/aside.tpl +++ b/templates/frontend/components/aside.tpl @@ -74,9 +74,23 @@ {if $supplementaryGalleys} {foreach from=$supplementaryGalleys item=galley} {if $galley->getLocale() == $navigationLocale} + {$fileLocaleExist++} {include file="frontend/objects/galley_link.tpl" parent=$article isSupplementary="1"} {/if} {/foreach} + {if !$fileLocaleExist} + {foreach from=$supplementaryGalleys item=galley} + {if $galley->getLocale() == 'en_US'} + {$fileLocaleExist++} + {include file="frontend/objects/galley_link.tpl" parent=$article isSupplementary="1"} + {/if} + {/foreach} + {/if} + {if !$fileLocaleExist} + {foreach from=$supplementaryGalleys item=galley} + {include file="frontend/objects/galley_link.tpl" parent=$article isSupplementary="1"} + {/foreach} + {/if} {/if} {/if}