Re: simplex template posizionamento google
Posted: Mon Dec 24, 2012 3:12 pm
ok ci siamo
ho inserito il tag che mi hai indicato nel template di dettaglio della email
{assign var='pagetitle' value=$entry->title}
{assign var="taghead" value=$entry}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}
{metadata}
{* set a canonical variable that can be used in the head section if process_whole_template is false in the config.php *}
{if isset($entry->canonical)}
{assign var='canonical' value=$entry->canonical}
{/if}
<h2> {$entry->title|cms_escape:htmlall}</h2>
<section class='news-article'>
<time class='date' datetime='{$entry->postdate|date_format:'%Y-%m-%d'}'>
<span class='day'> {$entry->postdate|date_format:'%d'} </span>
<span class='month'> {$entry->postdate|date_format:'%b'} </span>
</time>
{if $entry->summary}
{eval var=$entry->summary}
{/if}
{eval var=$entry->content}
{if $entry->extra}
{$extra_label} {$entry->extra}
{/if}
{if $return_url != ""}
<br />
<span class='back'>← {$return_url}{if $category_name != ''} - {$category_link}{/if}</span>
{/if}
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
<div>
{if $field->type == 'file'}
{* this template assumes that every file uploaded is an image of some sort, because News doesn't distinguish *}
<img src='{$entry->file_location}/{$field->value}' alt='' />
{else}
{$field->name}: {eval var=$field->value}
{/if}
</div>
{/foreach}
{/if}
{* <footer class='news-meta'>
{if $entry->postdate}
{$entry->postdate|cms_date_format}
{/if}
{if $entry->category}
<strong>{$category_label}</strong> {$entry->category}
{/if}
{if $entry->author}
<strong>{$author_label}</strong> {$entry->author}
{/if}
</footer>*}
nel metatag e' bastato inserire solo questo
<meta property="og:title" content="{$taghead->title|cms_escape:htmlall}" />
adesso e' rimasto solo un problema che credo dipenda dal posto nel template dove ho inserito il tag che mi hai idicato
il problema e' che mi si ripete il titolo per 3 volte se condivido in google+ o altri ad esempio
se condivido:
http://www.overgroup.eu/corsi_ecm/news/ ... nale-SIUrO
ottengo:
XXIII Congresso Nazionale SIUrO XXIII Congresso Nazionale SIUrO »
XXIII Congresso Nazionale SIUrO. 09 Jun. 09 - 11 Giugno 2013. PALAZZO DEGLI AFFARI FIRENZE. Cari Colleghi,. è per me un grande onore scrivere queste righe di saluto e di invito al XXIII Congresso Nazi...
il titolo lo trovo 3 volte
sempre grazie
ho inserito il tag che mi hai indicato nel template di dettaglio della email
{assign var='pagetitle' value=$entry->title}
{assign var="taghead" value=$entry}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}
{metadata}
{* set a canonical variable that can be used in the head section if process_whole_template is false in the config.php *}
{if isset($entry->canonical)}
{assign var='canonical' value=$entry->canonical}
{/if}
<h2> {$entry->title|cms_escape:htmlall}</h2>
<section class='news-article'>
<time class='date' datetime='{$entry->postdate|date_format:'%Y-%m-%d'}'>
<span class='day'> {$entry->postdate|date_format:'%d'} </span>
<span class='month'> {$entry->postdate|date_format:'%b'} </span>
</time>
{if $entry->summary}
{eval var=$entry->summary}
{/if}
{eval var=$entry->content}
{if $entry->extra}
{$extra_label} {$entry->extra}
{/if}
{if $return_url != ""}
<br />
<span class='back'>← {$return_url}{if $category_name != ''} - {$category_link}{/if}</span>
{/if}
{if isset($entry->fields)}
{foreach from=$entry->fields item='field'}
<div>
{if $field->type == 'file'}
{* this template assumes that every file uploaded is an image of some sort, because News doesn't distinguish *}
<img src='{$entry->file_location}/{$field->value}' alt='' />
{else}
{$field->name}: {eval var=$field->value}
{/if}
</div>
{/foreach}
{/if}
{* <footer class='news-meta'>
{if $entry->postdate}
{$entry->postdate|cms_date_format}
{/if}
{if $entry->category}
<strong>{$category_label}</strong> {$entry->category}
{/if}
{if $entry->author}
<strong>{$author_label}</strong> {$entry->author}
{/if}
</footer>*}
nel metatag e' bastato inserire solo questo
<meta property="og:title" content="{$taghead->title|cms_escape:htmlall}" />
adesso e' rimasto solo un problema che credo dipenda dal posto nel template dove ho inserito il tag che mi hai idicato
il problema e' che mi si ripete il titolo per 3 volte se condivido in google+ o altri ad esempio
se condivido:
http://www.overgroup.eu/corsi_ecm/news/ ... nale-SIUrO
ottengo:
XXIII Congresso Nazionale SIUrO XXIII Congresso Nazionale SIUrO »
XXIII Congresso Nazionale SIUrO. 09 Jun. 09 - 11 Giugno 2013. PALAZZO DEGLI AFFARI FIRENZE. Cari Colleghi,. è per me un grande onore scrivere queste righe di saluto e di invito al XXIII Congresso Nazi...
il titolo lo trovo 3 volte
sempre grazie