Copied to clipboard

Flag this post as spam?

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


  • Søren Linaa 255 posts 208 karma points
    Feb 09, 2015 @ 14:48
    Søren Linaa
    0

    Use SeoChecker in searchview

    Hi,

    Is this possible. Im tring to list a search view with the seochcker meta title and description. 

    It's not working as supposed. It's takes the current page values. Can I cast it somehow. 

     foreach (var result in Umbraco.TypedSearch(Request.QueryString["search"])){
           var meta = result.GetPropertyValue<SEOChecker.MVC.MetaData>("seoChecker");
                            <div class="col-md-12 search-item">
                             
                             <h3><a href="@result.Url">@meta.Title</a></h3>
                                <p>
                                    @meta.Description
                                </p>
                            </div>
                        }

     

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Feb 09, 2015 @ 15:46
    Richard Soeteman
    0

    Which version are you using? I don't think there is a dependency on that since 1.8.

  • Søren Linaa 255 posts 208 karma points
    Feb 09, 2015 @ 15:48
    Søren Linaa
    0

    SeoChecker v1.8.1

    Umbraco 7.2.1

  • Søren Linaa 255 posts 208 karma points
    May 29, 2015 @ 13:19
    Søren Linaa
    0

    Any updates on this ?

    It seems to take the meta data from the currentpage no matter what.

    What I expect the function to give me. Is the meta data from the page i refer to in "result" - but it dont

    var meta = result.GetPropertyValue<SEOChecker.MVC.MetaData>("seoChecker");

     

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    May 29, 2015 @ 13:28
    Richard Soeteman
    0

    Ohh sorry, but indeed it depends on current page to get the the other properties of the page. I have a fix for ArcheType maybe that will work for this also.

    https://www.dropbox.com/s/u490falkx6r18b1/seochecker-1.8.2.zip?dl=0

    Hope this helps.

    Richard

  • Søren Linaa 255 posts 208 karma points
    May 29, 2015 @ 13:53
    Søren Linaa
    0

    ok I'll try. 

    How do I update. Install as a normal umbraco package or just take the dll's

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    May 29, 2015 @ 13:57
    Richard Soeteman
    0

    Just run the package installer indeed

  • Søren Linaa 255 posts 208 karma points
    May 29, 2015 @ 14:10
    Søren Linaa
    0

    Ok, it still gives me the currentpage values, so the update don't work for this issue. 

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    May 30, 2015 @ 08:49
    Richard Soeteman
    0

    Oh sorry you are using the propertyvalueconverter and that always checks the currentPage. It's meant for the front-end so i think it will not work in your scenario.

  • Søren Linaa 255 posts 208 karma points
    Jun 01, 2015 @ 10:18
    Søren Linaa
    0

    What's the alternative ?

    I'll appreciate if you can show me the code.

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Jun 01, 2015 @ 14:53
    Richard Soeteman
    0

    Maybe you can use without propertyconverter?

  • Morten K. J. 23 posts 64 karma points
    Jun 29, 2016 @ 21:53
    Morten K. J.
    0

    I am facing exactly the same situation - and the same problem... Is there any way to get hands on title and description from an IPublishedContent which is NOT the CurrentPage??

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Jun 30, 2016 @ 05:59
    Richard Soeteman
    0

    Hi,

    This will be added in V2. But still not possible for now.

    Best,

    Richard

  • Morten K. J. 23 posts 64 karma points
    Jun 30, 2016 @ 07:19
    Morten K. J.
    0

    Hi Richard

    Looking forward to version 2 then :) Any idea when it will be released?

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Jun 30, 2016 @ 07:26
    Richard Soeteman
    0

    No real release date but later this year..

  • Morten K. J. 23 posts 64 karma points
    Jun 30, 2016 @ 07:28
    Morten K. J.
    0

    A christmas present then! Great :)

    Have a nice day, Richard

  • Remko 118 posts 283 karma points
    Aug 20, 2018 @ 19:07
    Remko
    0

    Too bad this wasn't ever solved.. No matter what node (IPublishedContent) I try, I always get seoChecker value of CurrentPage.

    I should think that anyPublishedContent.GetPropertyValue

    Also it seems that this seoChecker value is cached.. When making changes in for example seoTitle, I need to publish the node twice before it shows the latest value.

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Aug 21, 2018 @ 06:50
    Richard Soeteman
    0

    This was by design in the past and still is in V2. I should have mentioned 2.x in the past. It needs the context of the page to render all metadata not just the once you have entered.

    And usually you only need the metadata of the current page

    @{
    var meta = Model.Content.GetPropertyValue<SEOChecker.MVC.MetaData>("seoChecker");
    }
    @meta.AllTags
    

    Best,

    Richard

    Best,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft