Bug reports Found a bug? Post it here please.
Version 7.x > Bug reports > Macro: CurrentDocument.RelatedDocuments.Count always returns 0 View modes: 
User avatar
Member
Member
carly.lyddiard-getstarted.com - 10/9/2012 5:58:42 PM
   
Macro: CurrentDocument.RelatedDocuments.Count always returns 0
Hi guys!

I'm attempting to control visibility of a webpart based on related documents count.
I first tried to use
{%CurrentDocument.RelatedDocuments.Count == 0%}.

Is that behaviour intended?

(version: K7.0.2)

Cheers,
Carly

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 10/10/2012 1:47:06 AM
   
RE:Macro: CurrentDocument.RelatedDocuments.Count always returns 0
Hi,

Please see this forum thread solving a similar issue: http://devnet.kentico.com/Forums.aspx?forumid=55&threadid=31269

I hope it will help you.

Best regards,
Helena Grulichova

User avatar
Member
Member
Carly Lyddiard - 10/10/2012 5:04:24 PM
   
RE:Macro: CurrentDocument.RelatedDocuments.Count always returns 0
Thanks, Helena! :-)