Get Blog Post Details.
sourabhCofoundry opened this issue · comments
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.