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 324 posts 1439 karma points
    1 week ago
    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 3679 posts 11267 karma points MVP
    1 week ago
    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 324 posts 1439 karma points
    7 days ago
    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 3679 posts 11267 karma points MVP
    7 days ago
    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 324 posts 1439 karma points
    7 days ago
    Bo Jacobsen
    0

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

  • Bo Jacobsen 324 posts 1439 karma points
    7 days ago
    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 3679 posts 11267 karma points MVP
    7 days ago
    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 324 posts 1439 karma points
    7 days ago
    Bo Jacobsen
    0

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

Please Sign in or register to post replies

Write your reply to:

Draft