Bonjour,
j'ouvre ce post pour recenser éventuellement ici vos surchages de templates (voir la news
ici) afin de montrer des exemples.
Je commence avec une surchage sur le module News (1.44), sur la page de l'affichage d'une news, avec pièce jointe.
Les pièces-jointes n'étaient pas très visibles en bas à droite de l'article.
J'ai donc modifié la présentation du template news_article.html.
J'en ai profité pour changé 2 images (l'imprimante et l'enveloppe).
La modif est visible
ici.
Le fichier modifié est donc copié sous /themes/monthemes/modules/news
Les images sont copiés sous /themes/monthemes/modules/news/images
pj.gif
print.gif
friend.gif
Bout de code modifié dans le template news_article.html
<{if $attached_files_count>0}>
[color=CC0000]<!-- <div class="itemInfo">-->[/color]
<img src="[color=CC0000]<{xoImgUrl modules/news/images/pj.gif}>" [/color]border="0px" [color=CC0000]alt="<{$lang_attached_files}>" align="middle"[/color] />
<{foreach item=onefile from=$attached_files}>
<a href='<{$onefile.visitlink}>' target='_blank'><{$onefile.file_realname}></a>
<{/foreach}>
[color=CC0000]<!-- </div>-->[/color]
<{/if}>
<{if $pagenav}><div style="text-align: left; margin: 10px;">Page <{$pagenav}></div><{/if}>
<div style="padding: 5px; text-align: right; margin-right:3px;">
<{if $nav_links}>
<{if $previous_story_id != -1}>
<a href='<{$xoops_url}>/modules/news/article.php?storyid=<{$previous_story_id}>' title="<{$previous_story_title}>"><{$lang_previous_story}></a> - <{/if}><{if $next_story_id!= -1}><a href='<{$xoops_url}>/modules/news/article.php?storyid=<{$next_story_id}>' title="<{$next_story_title}>"><{$lang_next_story}></a>
<{/if}>
<{/if}>
<a href="<{$xoops_url}>/modules/news/print.php?storyid=<{$story.id}>" rel="nofollow" title="<{$lang_printerpage}>"><img src="[color=CC0000]<{xoImgUrl modules/news/images/print.gif}>"[/color] border="0" alt="<{$lang_printerpage}>" /></a>
<a target="_top" href="<{$mail_link}>" title="<{$lang_sendstory}>" rel="nofollow"><img src="[color=CC0000]<{xoImgUrl modules/news/images/friend.gif}>"[/color] border="0" alt="<{$lang_sendstory}>" /></a>
<a target="_blank" href="<{$xoops_url}>/modules/news/makepdf.php?storyid=<{$story.id}>" rel="nofollow" title="<{$lang_pdfstory}>"><img src="<{$xoops_url}>/modules/news/images/acrobat.gif" border="0" alt="<{$lang_pdfstory}>" /></a>
</div>