这是内置的域 $V2AttachmentOptions 为1,显示附近,为0隐藏附件
然后通过公式根据要求是否显示附件
@If(!@Attachments; @Return(""); "");
"View attachments here:<br>" +
@Implode("<a href=/"" + @Text(@DocumentUniqueID) + "/$file/" + @AttachmentNames + "/">"+@AttachmentNames + "</a>"; "<br>")
然后通过公式根据要求是否显示附件
@If(!@Attachments; @Return(""); "");
"View attachments here:<br>" +
@Implode("<a href=/"" + @Text(@DocumentUniqueID) + "/$file/" + @AttachmentNames + "/">"+@AttachmentNames + "</a>"; "<br>")
博客介绍了内置域 $V2AttachmentOptions ,其值为1时显示附近,为0则隐藏附件。还给出了通过公式根据要求控制附件显示的代码,利用公式判断并生成附件链接。
213

被折叠的 条评论
为什么被折叠?



