[New Templates] SEO friendly templates for LifeType 1.2x

lifetype show_posts_max settings

| | Add comment | Trackbacks (0)

lifetype show_posts_max settings

    Let's implement shown 8 posts in the main page, show full content first post only. Don't use "Split Post With More Tag" feature, that will break your html code.
   
    Login admin.php, You can Click "Control center", "Settings", "Blog Settings", "Number of items in the main page", enter 8 in the text box, then Click "Update" button. but shown 8 posts in the main page with full content is too busy.
   
    OK, how about show 1 post in the main page? good idea! but, shown 1 post in the category page and edit post page is not a good idea, lifetype don't understand this "show_posts_max" is not that "show_posts_max", this might a bug of lifetype. what can I do?
   
    This is my solution:
   
    in main.template:
    {foreach name=currPost from=$posts item=post}
    {if $showAll | 1 && $category}
        ...
    {else}
       {include file="$blogtemplate/post.template"}
    {/if}
    {/foreach}
    {include file="$blogtemplate/footer.template"}   
   
    in post.template:
    {if $smarty.foreach.currPost.first}
       {$post->getText()}
    {else}
        {$post->getText()|strip_tags|truncate:300:"...":false}
    {/if}
   
    demo:
    http://lifetype.chinese-blog.org/
   
    This setting included in "seo friendly templates", you can download from here:
    http://lifetype.chinese-blog.org/lifetype-templates/seo-friendly-templates

lifetype seo firendly page title

| | | Trackbacks (0)
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
«Previous   1 2 3 4 5 6 7  Next»