1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Category Pages > SEO question

Discussion in 'XenForo Questions and Support' started by Ryan Kent, May 17, 2011.

  1. Ryan Kent

    Ryan Kent Well-Known Member

    I recently used a SEO tool on my site and one item is called out was the lack of Meta tags on certain pages. I took a look and determined that Category pages do not use Meta Name Descriptions. I am just curious as to why that is? Forum pages use the "Description" field from the ACP as their Meta Name Description.

    If it matters, I do have Create Pages for Categories checked in ACP > Options > Nodes & Forum Lists
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I don't put much stock in website analyzers like that.

    Category pages don't contain any meaningful content. Nor do forum pages. Thread pages are the important thing.
  3. Ryan Kent

    Ryan Kent Well-Known Member

    I am trying to expand on the XF foundation as much as possible. I am trying the idea of allowing gaming guilds to have their own category page and use that as their guild's home page.

    Example: http://www.terapvp.com/categories/ghost-guild.57 which can also be accessed via http://www.TeraGuilds.net/Ghost

    Right now it is clearly just a XF category page. By allowing a custom background and a sidebar, this page can become more of a homepage for the guild.

    I would like to help out by setting the meta description as the category description. I tried {$category.description} and {$category.node_description} but neither worked. Does anyone know the correct parameter?
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  5. Ryan Kent

    Ryan Kent Well-Known Member

    the code I was using is
    <xen:container var="$head.description">
        <meta name="description" content="{$category.node_description}" /></xen:container>
    So I am using the xen:container. Do I need to xen:include the forum_view to access the record?

    The light bulb in my head is beginning to flicker a bit but I definitely don't have a clear understanding of this area yet.
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Oh sorry. That code should go into category_view.

    edit - and the code should be:

    <xen:container var="$head.description">
        <meta name="description" content="{$category.description}" /></xen:container>
    {$category.description} is the right variable, not {$category.node_description}.
    Oracle likes this.
  7. Ryan Kent

    Ryan Kent Well-Known Member

    Man I was soooo close that time to solving it on my own. Works perfect, a million thanks Jake.

Share This Page