logo

New Response

« Return to the main article

You are replying to:

  1. This works fine, and now I have another dilemma. I want to scan my attachment list and only build image tags to display those attachments that are jpg's or gifs. I'm using this formula:

    AttachList := @ReplaceSubstring(@AttachmentNames; " " ;"+" ); Currentview := @ReplaceSubstring(@Subset(@ViewTitle; 1);" ";"+"); AttSuffix := @LowerCase(@Right(@AttachmentNames;3));

    @If(AttSuffix="gif" | AttSuffix="jpg"; "<img src=\"/" +@ReplaceSubstring(@Subset(@DbName; -1);"\\";"/") +"/ContentByCategory/" + @Text(@DocumentUniqueID ) + "/$File/" + AttachList + "\">";"")

    My question: How do I just pull out only those attachment that are jpgs or gifs? i.e. if a doc contains a jpg and a word doc, for example.

    thanks!

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: