Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jasmin Savard
    @Skrypt
    maybe you made a typo because it should work from what I'm seeing
    Omid Nasri
    @omidnasri
    Capture.PNG
    Jasmin Savard
    @Skrypt
    item.Content.CrmBlogPost.Image.Paths.first
    Omid Nasri
    @omidnasri
    Ya but this not work, I don't know
    Jasmin Savard
    @Skrypt
    try displaying item.Content.CrmBlogPost
    Omid Nasri
    @omidnasri
    When displaying result is empty
    Jasmin Savard
    @Skrypt
    can you dump the item.Content
    and paste it here
    or just item
    Omid Nasri
    @omidnasri
    wait
    I apply item.Content
    you can access to result from: http://www.crm-support.ir/blog
    Capture.PNG
    I can't understand why this not work when I use -> item.Content.CrmBlogPost.Image.Paths.first
    Jasmin Savard
    @Skrypt
    And you say that {{ item.Content.CrmBlogPost }} doesn't work?
    Omid Nasri
    @omidnasri
    Yes, result will be empty
    Jasmin Savard
    @Skrypt
    can you do {{ item }} ?
    I want to get all the json
    I can see that there is some warning in the json editor with some chars
    It is possible that Newtonsoft.Json doesn't parse the json properly because of those chars
    Omid Nasri
    @omidnasri
    wait until test this
    Jasmin Savard
    @Skrypt
    ‌‌ok I see the issue
    The Content json object is double encoded
    Omid Nasri
    @omidnasri
    @Skrypt
    i resolved the unsafe chars.
    but i can't access the image field
    see again:
    Jasmin Savard
    @Skrypt
    Now if you do {{ item.Content }} it seems to return proper JSON
    Omid Nasri
    @omidnasri
    Capture.PNG
    ya Json will be ok but i can't access, i don't know.
    Jasmin Savard
    @Skrypt
    There is something wrong with the JSON parser
    You did any migration of your data manually?
    Omid Nasri
    @omidnasri
    no
    Jasmin Savard
    @Skrypt
    Could you get the Document JSON from database?
    Omid Nasri
    @omidnasri
    Yes
    Jasmin Savard
    @Skrypt
    So that we can compare
    Omid Nasri
    @omidnasri
    I don't have any idea why this not work.
    Jasmin Savard
    @Skrypt
    Me neither. Maybe some recent changes made in dev
    Omid Nasri
    @omidnasri
    No
    Jasmin Savard
    @Skrypt
    If you can give us the json data that is in the db it would help finding why.
    Omid Nasri
    @omidnasri
    ok, wait
    Jasmin Savard
    @Skrypt
    So you're not on latest dev?
    If you're not ; give us exactly which version to see if it's not something that has been fixed already
    Omid Nasri
    @omidnasri
    Project is latest version for 3 week ago
    Jasmin Savard
    @Skrypt
    I need the version of the nuget packages
    here is the SQL
    Omid Nasri
    @omidnasri
    SELECT * FROM ContentItemIndex AS ContentItem
    INNER JOIN Document AS Doc ON ContentItem.DocumentId = Doc.Id
    Where Published = true and ContentType = 'CrmBlogPost' LIMIT 2
    Jasmin Savard
    @Skrypt
    SELECT Content FROM Document LEFT JOIN ContentItemIndex ON Document.Id = ContentItemIndex.DocumentId WHERE ContentItemIndex.ContentItemId = '42x8zm7av0b81vad3tyrq95mcd' AND ContentItemIndex.Latest = 1