Hello, I can't figure a way to ensure that documents that have passed the expiration date would not display to CA SDM users.
I'd like that the Knowledge manager be able to see that document in kt_document_view.htmpl a message when a document is still published but expired and that other SDM users would not see the content of the page.
I tried things like <PDM_IF "$args.EXPIRATION_DATE_INT_DATE + new Date().getTime()/1000)" \> "0"> or
<PDM_IF "$args.EXPIRATION_DATE_INT_DATE \> new Date().getTime()/1000)" > but that did not worked.
When I just display the calculation for a test on the webpage it works but the PDM_IF condition never seems to get in.
Or is there a way to get the current date to use for validation in the PDM_IF clause? Like Server variable ($session.GetDate??)
Or on the other hand, is there a parameter in SDM that can be defined when a knowledge document reaches it expiration date it would get retired?
Thanks for you help
I am not sure how to do this using code, BUT, from a process perspective, why wouldnt you set the system so that when a document expires, it automatically gets unpulished, and then you can simply use a data partition to prevent users from seeing expired documents?
I found a solution to that issue, found out in the configuration that every knowledge document that get expired get retired. The problem was with documents that did not have expiration date setted on. I gave the knowledge manager a
scoreboard query so he'd be able to find out documents that never expires.
I also setted that constraint so that users that are not the knowledge manager would not be able to see expired documents.
Thats great! So my post was true - you guys just need to have an expiration date on the documents
Look like you had solution. Please mark the question Answered.