Skip to end of metadata
Go to start of metadata

Guys,

The forum macro has the feature of showing a paperclip if attachments have been added to the forum topic, the paperclip has the hyperlink to the attachment page.

I've tried to rebuild this feature for an actionlist, but cannot get it working yet. Could you tell me which macro you used for this? I tried it with the 'show-if' macro, but no success yet. The codes I tried were;

{show-if:attachment>0}
{link-to:page attachments}!paperclip.gif!{link-to}
{show-if}

And

{show-if:attachment>0}
{attachments:upload=true}
{show-if}

Any other ideas/approaches?

  • No labels

1 Comment

  1. In general you are better off using builder itself for this kind of thing (wink)

    {builder-show:attachment=}{compound-menuitem:attachments|icon=document_attachment|caption=Attachments (%count%)|flat=true}{builder-show}
    

    and

    {builder-show:attachment=}{attachments:upload=true}{builder-show}