Copied to clipboard

Flag this post as spam?

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


  • Bo Jacobsen 593 posts 2389 karma points
    Jan 14, 2020 @ 11:07
    Bo Jacobsen
    0

    Can you use seochecker on pages with no templates

    Hi.

    Using Umbraco 8.4.0 and SeoChecker 2.9.0

    I am wondering if you can use SeoChecker on documents with no templates?

    Why i am asking is because i wanna be able to use the same title and description for all children of a specific document, since they all contains the same general information and only differs on dates.

    So i moved my seoChecker composition from the child document to the parent document that has no template. And when i try to get the MetaData from the parent document. All properties are empty ,except the canonicalUrl, that contains the url for the child.

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Jan 15, 2020 @ 07:41
    Richard Soeteman
    0

    HI Bo,

    Metadata object only contains the data that you added via the Property editor. The rest will be rendered based on the context of the page. I think with the latest version it's possible to use the property editor converter and you can retrieve all data based on the parent page?

    Best,

    Richard

  • Bo Jacobsen 593 posts 2389 karma points
    Jan 15, 2020 @ 10:50
    Bo Jacobsen
    0

    Hi Richard.

    Are you thinking of Umbraco 8.5.0?

    And the converter you are talking about is MetaData like Parent.Value<MetaData>("seoChecker", culture: culture) ?

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Jan 15, 2020 @ 10:53
    Richard Soeteman
    100

    Just checked this should be the syntax

    Render Metatags of different document

    @{
        var meta = new SEOChecker.MVC.MetaData(1097);
    
    }
    @meta.AllTags
    
  • Bo Jacobsen 593 posts 2389 karma points
    Jan 15, 2020 @ 10:54
    Bo Jacobsen
    0

    I try it out and get back with more info :)

  • Bo Jacobsen 593 posts 2389 karma points
    Jan 15, 2020 @ 14:03
    Bo Jacobsen
    0

    Perfect.

    var meta = new SEOChecker.MVC.MetaData(1097); worked like a charm.

    While var meta = Content.Value<MetaData>("seoChecker", culture: culture); only works on document with template.

    But i am curious how MetaData(1097) can differ between cultures?

  • Richard Soeteman 4035 posts 12842 karma points MVP
    Jan 15, 2020 @ 14:05
    Richard Soeteman
    0

    Think it will take the current Context for now. There are a few areas to improve multi lingual support also for sitemaps.

  • Bo Jacobsen 593 posts 2389 karma points
    Jan 15, 2020 @ 14:09
    Bo Jacobsen
    0

    Okay. But thanks for the help and info. :)

Please Sign in or register to post replies

Write your reply to:

Draft