Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > why different queries? View modes: 
User avatar
Member
Member
tomaszj - 5/20/2011 3:03:31 AM
   
why different queries?
Why WebPart Repeater with property "Document types: CMS.ImageGallery" in Preview mode executes query on view View_CMS_Tree_Joined_Versions, but in Live Site mode executes query on view View_CONTENT_ImageGallery_Joined ?
Why the difference?

User avatar
Member
Member
kentico_michal - 5/23/2011 7:51:15 AM
   
RE:why different queries?
Hello,

The reason for this behavior is that the live site mode displays the latest published version of the document whereas the edit (or preview) mode shows the last version even if it is has not been published yet.
So, the table View_CONTENT_ImageGallery_Joined is queried to get the latest published version of the document.


Best regards,
Michal Legen