cofoundry-cms / cofoundry

Cofoundry is an extensible and flexible .NET Core CMS & application framework focusing on code first development

Home Page:https://www.cofoundry.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get Blog Post Details.

sourabhCofoundry opened this issue · comments

Hii team I have faced an issue I have reverted to a previous version of the blog post details But It's an issue - PublishStatusQuery.SpecificVersion is not supported in GetCustomEntityRenderSummariesByDefinitionCodeQuery.
Screenshot_10

From your screenshot it looks like you have not "reverted" to the version, but are instead "viewing" that version (that is the button you have highlighted). To revert to that version, you'd need to select the "copy to draft" button, which will make a copy of that version as the latest draft, and then publish it.

So, I guess that the problem you have is that you're trying to view a specific version, but some of the code you have in that page uses GetCustomEntityRenderSummariesByDefinitionCodeQuery and it's not returning the version you expect? Unfortunately, because GetCustomEntityRenderSummariesByDefinitionCodeQuery returns multiple entities, you can't request a specific version of just one of those entities, it's just not designed to be used that way and will throw an exception if you do. Other queries that target and return a single entity can be used to target a specific version e.g. GetCustomEntityRenderSummaryByIdQuery or GetCustomEntityRenderSummariesByUrlSlugQuery.

Closing, no further info.