sitetitle in viewlisting and showisting

Discussion in 'TemplateCodes' started by kuniv, Apr 14, 2011.

  1. kuniv Customer

    Because Arabic is read from right to left
    google the archive in Arabic

    1- I want to change where the sitetitle comes after the category in showlisting to appear higher in search engine rankings

    2- and change where the sitetitle comes after the title in viewlisting

    same
    car» BMW change to BMW» car
  2. Mike-N-Tosh Owner

    Can you just add that in the template in the html element <element dir="rtl">.

    I've not done this, but it is written in the html standards.
  3. kuniv Customer

    hi this not work

    how change sitetitle » title to title » sitetitle
  4. seymourjames All Hands On Deck

    This core 68C setting for the site title. You need to look in the core files. Its not in TC although one solution is to put a test in layout.tpl and assign a new site title. There are several forum posts about SEO on the forum and how to test for specific types of pages..
  5. John Snyder Staff

    This depends on exactly what page you are talking about. If you are talking about category.php you can edit the template and the category.php to reverse the order of categories:

    templates/default/categories/breadcrumb.tpl

    HTML:
    {foreach from=$breadcrumb item="entry"}
            {$entry} {$smarty.const.LANG_CAT_SEPERATOR}
        {/foreach}
        <a href="category.php" class="breadcrumb">{$smarty.const.LANG_BROWSE_CATEGORIES}</a>
    
    category.php line: 47

    PHP:
    $class_tpl->assign('breadcrumb'array_reverse($Categories->breadcrumb($cat['id'], 0)));
  6. seymourjames All Hands On Deck

    Do you want to change the bread crumb or the page title? Two different things. The first is unlikely to have any impact on search engines whereas the latter may have some minor benefit. The latter requires you to either change the core file where the page title is assigned or you need to test for it in the layout.tpl file and reassign it.

    With Templatecodes (I think you are using that if memory serves me correctly?), something like this can be placed in the head. You can also effectively do this with the default template too although the test is a little different.


    if $script_name == "category.php"}
    {if empty($breadcrumb)}
    {assign var=seo_title value="main category page title"}
    {assign var=seo_desc value="main category page description"}
    {assign var=seo_key value="keyword1, keyword2, keyword3"}

    {else}

    {foreach name=outer item=contact from=$breadcrumb}
    {foreach item=item from=$contact}
    {assign var=category value=$item|strip_tags}
    {/foreach}
    {/foreach}

    {if $pageNum == 1}
    {assign var=seo_title value=$category}
    {assign var=seo_desc value=$sitedescription}
    {assign var=seo_key value=$sitekeywords}
    {else}

    {assign var=seo_title value="$category $pageNum"}
    {assign var=seo_desc value="$sitedescription : $pageNum"}
    {assign var=seo_key value=$sitekeywords}
    {/if}

    {/if}

    This will actually drop the whole breadcrumb from appearing in the page title and it will just put the category name which is probably best from an SEO perspective because completely unique page titles are considered by many as better. Likewise you can do something similar for viewlistings. Take a look here at one of the sites and tell me that this is what you are seeking to do with categories and viewlistings. Better than trying to explain everything in detail - my current projects
  7. kuniv Customer

    i cant :(

    ::::::::(
  8. seymourjames All Hands On Deck

    What can't you do? You need to be clear about what you are actually trying to do. Change the order of words in the breadcrumb which you see on the page or in the page title (what you see on top of the browser).

    There are developers familiar with 68C that you could contact for paid work.
  9. kuniv Customer

    thanks seymourjames :)

Share This Page