Re: Xoops & SEO | Titre du sujet : Re: Xoops & SEO par Kris sur 19/12/2009 13:19:32
Très cher,
Dans le dernier morpho, il y a un peu de progrès. Mais tu peux ajouter deux trois petites choses : 1) un titre dans la div des blocs par exemple le fichier blockszone.html :
<{if $blocks}>
<<{$zoneTag}> <{if $zoneId}> id="<{$zoneId}>"<{/if}> class="xo-blockszone <{if $zoneClass}> <{$zoneClass}><{/if}>">
<{foreach from=$blocks item=block}>
<div id="xo-block-<{$block.module}>-<{$block.id}>" class="xo-block <{$block.module}>" title="<{$block.module}> : <{$block.title}>">
<{if $theme_viewall_block && $block.module !='system' && $block.module !=''}>
<div id="xo-blockviewall">
<a href="<{$xoops_url}>/modules/<{$block.module}>" title="<{$smarty.const.THEME_VIEWALL}>">
<img src="<{xoImgUrl icons/action/14_layer_novisible.png}>" alt="<{$smarty.const.THEME_VIEWALL}>" />
</a>
</div>
<{/if}>
<{if $block.title}>
<div class="xo-blocktitle" title="<{$block.title}>">
<{$block.title}>
<{if $xoops_isadmin}>
<a rel="external" href="<{xoAppUrl /modules/system/admin.php?fct=blocksadmin&op=edit&bid=}><{$block.id}>" title="<{$smarty.const.THEME_THISBLOCK_EDIT}>" >
<img class="xo-blockquickedit" src="<{xoImgUrl icons/action/edit-block.png}>" alt="<{$smarty.const.THEME_THISBLOCK_EDIT}>"/>
</a>
<{/if}>
</div>
<{else}>
<{if $xoops_isadmin}>
<div class="xo-blockquicklink">
<a rel="external" href="<{xoAppUrl /modules/system/admin.php?fct=blocksadmin&op=edit&bid=}><{$block.id}>" title="<{$smarty.const.THEME_THISBLOCK_EDIT}>" >
<img class="xo-blockquickedit" src="<{xoImgUrl icons/action/edit-block.png}>" alt="<{$smarty.const.THEME_THISBLOCK_EDIT}>" /><{$smarty.const.THEME_THISBLOCK_EDIT}>
</a>
</div>
<{/if}>
<{/if}>
<div class="xo-blockcontent"><{$block.content}></div>
</div>
<{/foreach}>
</<{$zoneTag}>>
<{/if}>
2) ajouter un sommaire à la table xo-canvas-columns, et un title dans la div xo-content dans theme.html
<table id="xo-canvas-columns" summary="<{if $xoops_pagetitle !=''}><{$xoops_pagetitle}> : <{$xoops_dirname}> :<{/if}><{$xoops_sitename}>">
<tr>
<{if $xoBlocks.canvas_left && $theme_view_leftcolumn}>
<{includeq file="$theme_name/blockszone.html" blocks=$xoBlocks.canvas_left
zoneClass='xo-canvas-column' zoneId='xo-canvas-leftcolumn' zoneTag='td'
}>
<{/if}>
<td id="xo-page">
<{if $theme_view_breadcrumb}><{includeq file="$theme_name/xo_breadcrumb.html"}><{/if}>
<{if $theme_view_topblock && ($xoBlocks.page_topleft or $xoBlocks.page_topcenter or $xoBlocks.page_topright)}>
<div id="xo-page-topblocks" class="xo-blockszone-xo-<{$theme_top_order}>pageblocks">
<{includeq file="$theme_name/centerblocks.html" topbottom=top lcr=$theme_top_order|substr:0:1}>
<{includeq file="$theme_name/centerblocks.html" topbottom=top lcr=$theme_top_order|substr:1:1}>
<{includeq file="$theme_name/centerblocks.html" topbottom=top lcr=$theme_top_order|substr:2:1}>
</div>
<{/if}>
<{if $xoops_contents}>
<div id="xo-content" title="<{if $xoops_pagetitle !=''}><{$xoops_pagetitle}> : <{$xoops_dirname}> :<{/if}>">
<{$xoops_contents}>
</div>
<{/if}>
<{if $theme_view_bottomblock && ($xoBlocks.page_bottomleft or $xoBlocks.page_bottomcenter or $xoBlocks.page_bottomright)}>
<div id="xo-page-bottomblocks" class="xo-blockszone-xo-<{$theme_bottom_order}>pageblocks">
<{includeq file="$theme_name/centerblocks.html" topbottom=bottom lcr=$theme_bottom_order|substr:0:1}>
<{includeq file="$theme_name/centerblocks.html" topbottom=bottom lcr=$theme_bottom_order|substr:1:1}>
<{includeq file="$theme_name/centerblocks.html" topbottom=bottom lcr=$theme_bottom_order|substr:2:1}>
</div>
<{/if}>
</td>
<{if $xoBlocks.canvas_right && $theme_view_rightcolumn}>
<{includeq file="$theme_name/blockszone.html" blocks=$xoBlocks.canvas_right
zoneClass='xo-canvas-column' zoneId='xo-canvas-rightcolumn' zoneTag='td'
}>
<{/if}>
</tr>
</table>
Enfin plein de petites astuces à essayer, et de templates à améliorer et vivement html 5
@++
|
|