Jump to:

10993 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » Seo Extension

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 371 Views
  • Nelia
    Avatar
    Community Member
    3 Posts

    Seo Extension Link to this post

    I have installed the seo module from HubertusAnton and it's working fine on pages with pagetype Page. It creates a new tab in the CMS where you can optimize the page for searchengines. Now I have created a new pagetype PortfolioPage (extends Page). I expected that the SEO module would show up in the CMS for the new pagetype as well since it extends Page. But I can't seem to get the SEO module to work on pages with pagetype 'PortfolioPage'. In the docs I read that I should put the new class in the yml-config file but I am probably doing something wrong, since this is also not solving the problem. Can someone please give me a clue?

  • camfindlay
    Avatar
    Forum Moderator
    148 Posts

    Re: Seo Extension Link to this post

    Can you post more information about your yaml config? One thing to double check is that you are indenting your yml files using 2 spaces and not tabs.

  • Nelia
    Avatar
    Community Member
    3 Posts

    Re: Seo Extension Link to this post

    Ofcourse, here it is. The spaces are there though. No tabs

    ---
    Name: 'seoextensions'
    ---
    Page:
    extensions:
    0: 'SeoObjectExtension'
    SeoConfig:
    Page: true
    ErrorPage: false
    RedirectorPage: false
    VirtualPage: false
    PortfolioPage:
    extensions:
    0: 'SeoObjectExtension'

    edit: the spaces get lost when the post is viewed, so I attached a txt-file with the yml content

    Attached Files
  • Nelia
    Avatar
    Community Member
    3 Posts

    Re: Seo Extension Link to this post

    Finally found the problem: all the while I was adding my own Class to the config.yml but in the wrong way. Attached the correct yml-file, where you see my own class PortfolioPage added under SeoConfig (duhhh, why did it take me so long to get this ?? )

    Attached Files
    371 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.