Share » Forums » Setup & design » Meta tag description

Meta tag description

Meta tag description

Friday 01 September 2006 2:46:10 am - 3 replies

Author Message

Marcin Drozd

Friday 01 September 2006 3:22:18 am

Hi
hmm, what do u think of:

{section name=meta loop=$site.meta}
 {if $meta:key|eq( 'description' ) }
    <meta name="description" content="my page title - my description content based on site.ini" />
 {else}
    <meta name="{$meta:key|wash}" content="{$meta:item|wash}" />
 {/if}
{/section}

http://ez-publish.pl

laurent le cadet

Friday 01 September 2006 5:41:21 am

hehe,

Fine !
Thanks.
I would like to perform now site title + meta description from site.ini :

<meta name="description" content="{$site_title} - {$Var from meta description} "/>

Another solution ?

Laurent.

laurent le cadet

Friday 01 September 2006 6:31:22 am

Done.

{section name=meta loop=$site.meta}

{section show=$meta:key|eq( 'description' ) }
<meta name="description" content="{$site_title} - {$site.meta.description} " />
{section-else}
<meta name="{$meta:key|wash}" content="{$meta:item|wash}" />
{/section}

{/section}

Laurent

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu