Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • JohnDoe 2 posts 22 karma points
    Aug 29, 2010 @ 19:15
    JohnDoe
    0

    Using Wesite Name and Caption, Website footer, Meta Keywords and Meta description correctly

    Hi all Umbraco experts.

    I am very new to Umbraco and use it as a CMS for a website and Im desperately trying to SEO optimizing it. But what do I have to write in the sections:

    1: Wesite Name?

    2: Website Caption?

    3: Website footer?

    4: Meta Keywords?

    5: Meta description?

    And do I have to do it for every single page on the website?

    I really hope to get some respons from you guys, as it is really needed :o)

     

    Thanks in advance for your interest.

  • bob baty-barr 1180 posts 1294 karma points MVP
    Aug 29, 2010 @ 20:38
    bob baty-barr
    0

    typically, this is how i approach these items...

    1. create a tab  for your homepage docType... call it Site Config Data

    2. create properties for the elements above using text and multiline text property types where needed.

    3. on you homepage master template add the appropriate umbraco getItems where it makes sense...

    example:

    <!-- google tracking code here -->
        <umbraco:Item field="gaCode" runat="server"></umbraco:Item>
    <!-- end google tracking code -->

     

    then for your interiror page master template, add the same items with the recursive property set to true... this will tell the code to bubble up the tree until it finds a value that matches...

    example: this code runs in the header of my sites with a <head runat="server"> surrounding the code below...

    <title><umbraco:Item field="pageHeading" useIfEmpty="navText" insertTextAfter=" || " runat="server"></umbraco:Item><umbraco:Item field="siteName" runat="server" recursive="true"></umbraco:Item></title>
            <umbraco:Item field="keywords" insertTextBefore="&lt;meta name=&quot;keywords&quot; content=&quot;" insertTextAfter="&quot;/&gt;" runat="server" recursive="true"></umbraco:Item>
            <umbraco:Item field="description" insertTextBefore="&lt;meta name=&quot;description&quot; content=&quot;" insertTextAfter="&quot;/&gt;" runat="server" recursive="true"></umbraco:Item>

    and the same code chunk from my homepage with the recursive property...

    <!-- google tracking code here -->
        <umbraco:Item field="gaCode" recursive="true" runat="server"></umbraco:Item>
    <!-- end google tracking code -->

    hope you find that helpful.

  • JohnDoe 2 posts 22 karma points
    Aug 29, 2010 @ 21:00
    JohnDoe
    0

    Hey Bob,

     

    thanks a lot for your reply. I will look into it and hopefully use your codes :o)

Please Sign in or register to post replies

Write your reply to:

Draft