Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Documents not publishied are showing on page. View modes: 
User avatar
Member
Member
Leandro Brito - 12/1/2011 11:38:04 AM
   
Documents not publishied are showing on page.
Hi guys,

I have a page menu item and some news inside it, to show the news I'm using a repeater.
When I save a new document type news and programmer the date of publish using the fields From and To, the news get the status Publishied No, but appear on page. The checkbox show only published is checked.


I think resolve this using a where like this:

(DocumentPublishFrom is null AND DocumentPublishTo is null) OR (DocumentPublishFrom <= GETDATE() AND DocumentPublishTo >= GETDATE()) OR (DocumentPublishFrom is null AND DocumentPublishTo >= GETDATE()) OR (DocumentPublishFrom <= GETDATE() AND DocumentPublishTo is null)


But I want know if this is a bug or some configuration wrong on my kentico/webpart before I do the solution.

Thanks,
Leandro

User avatar
Kentico Support
Kentico Support
kentico_radekm - 12/6/2011 1:12:29 AM
   
RE:Documents not publishied are showing on page.
Hello.

Does it appear on Live site as well, or in Preview mode only? When you select given News and navigate to Properties / General, Published property says “No”? If so, maybe some previous version of document is displayed. This can be checked in Properties / Workflow or Properties / Versions tabs. Thank you.

Best Regards,
Radek Macalik

User avatar
Member
Member
Leandro Brito - 12/6/2011 5:26:14 AM
   
RE:Documents not publishied are showing on page.
Hi,

The General, PUblished property says "No".
Workflow and Version tabs are empty.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 12/17/2011 2:00:26 PM
   
RE:Documents not publishied are showing on page.
Hello.

Can you answer my first question as well, please?

...
Does it appear on Live site as well, or in Preview mode only?
...


Best Regards,
Radek Macalik

User avatar
Member
Member
Leandro Brito - 12/17/2011 5:35:33 PM
   
RE:Documents not publishied are showing on page.
Yes, it appear on Preview mode only.
When I logout of kentico, the news not appear on site.

Thanks for the help!
Best Regards

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 12/17/2011 7:17:24 PM
   
RE:Documents not publishied are showing on page.
Hello,

the Preview mode displays all documents not only the published ones so that you can check how it will look like. Only the Live site mode hides the unpublished documents.


Best regards,
Helena Grulichova