lifetype seo firendly page title

| | | Trackbacks (0) | Next | Previous
lifetype seo firendly page title
   
    phunkphorce said:
    I've integrated this idea into Lifetype 1.2 so that now the $pageTitle variable in the template contains an automatically generated title that does not need any modification and whose contents change depending on where we are. The format of the titles is inspired on your tutorial, so hopefully this improvement will make your templates a bit easier to ready (http://forums.lifetype.net/viewtopic.php?t=5809)
   
    On post page, the <title>{$pageTitle|escape:"html"}</title> displaying like this:
    <title> blog name | post title </title>
   
    This is not perfectly "SEO friendly".
    seo friendly post page title like this:
    <title> post title</title>
    or:
    <title>post title|post category name</title>
    or:
    <title>post title|post category name|blog name</title>
   
    On category page, seo friendly page title like this:
    <title>category name</title>
    or:
    <title>category name|blog name</title>
   
    "Seo friendly" templates use this format:
    <title>{if !empty($post)} {$post->getTopic()} {elseif !empty($category)} {$category->getName()} {else} {$pageTitle|escape:"html"} {/if}</title>
   
    Feb 5, 2008 Updated (add to header.template):
    {assign var="blogTitle" value=$blog->getBlog()}
    {if !empty($post)}
        {assign var="pageTitle" value=$post->getTopic()}
        {foreach name=categories from=$post->getCategories() item=postCategory}
            {assign var="categoryName" value=$postCategory->getName()}
        {/foreach}
        {assign var="pageTitle" value="$pageTitle | $categoryName | $blogTitle"}
    {elseif !empty($category)}
        {assign var="pageTitle" value=$category->getName()}
        {assign var="pageTitle" value="$pageTitle | $blogTitle"}
    {/if}
     <title> {$pageTitle|escape:"html"} </title>   
   
    You can download "Seo friendly templates" for lifetype 1.2x here:
    http://lifetype.chinese-blog.org/lifetype-templates/seo-friendly-templates
    demo:
    http://lifetype.chinese-blog.org
   
    Feb 4, 2008