CW Article Attachments - Examples

#Example 7: Displaying a part of attachments

{ cwattachments start=?;count=?}
Settings:
- Enable Show Filename
- Enabled Show Filesize
- Enabled Show Description
- Enabled Show File Icon
- We set a custom caption of file attachment
- We add a custom images to attachments

With this example you can place particular attachments in article text where you want, not just whole list at once.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras pede libero, dapibus nec, pretium sit amet, tempor quis. Proin pede metus, vulputate nec, fermentum fringilla, vehicula vitae, justo. Ut tempus purus at lorem. Integer pellentesque quam vel velit. Suspendisse nisl.

{ cwattachments start=2;count=3} {cwattachments start=2;count=3}

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras pede libero, dapibus nec, pretium sit amet, tempor quis. Proin pede metus, vulputate nec, fermentum fringilla, vehicula vitae, justo. Ut tempus purus at lorem. Integer pellentesque quam vel velit. Suspendisse nisl.

{ cwattachments start=1;count=1} {cwattachments start=1;count=1}

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Cras pede libero, dapibus nec, pretium sit amet, tempor quis. Proin pede metus, vulputate nec, fermentum fringilla, vehicula vitae, justo. Ut tempus purus at lorem. Integer pellentesque quam vel velit. Suspendisse nisl.

#Example 8: Displaying a part of attachments

{ cwattachments list=2,3}
Settings:
- Enable Show Filename
- Enabled Show Filesize
- Enabled Show Description
- Enabled Show File Icon
- We set a custom caption of file attachment
- We add a custom images to attachments

This syntax will display part of attachments group - only selected attachments on 2nd and 3rd position will be displayed.

{cwattachments list=2,3}

#Example 9: Sorting change

{ cwattachments sort=desc }
Settings:
- Enable Show Filename
- Enabled Show Filesize
- Enabled Show Description
- Enabled Show File Icon
- We set a custom caption of file attachment
- We add a custom images to attachments

This syntax will display attachments in changed order.

{cwattachments sort=desc}

#Example 10: Load attachments from another article

{ cwattachments articleid=23 }
Settings:
- Enable Show Filename
- Enabled Show Filesize
- Enabled Show Description
- Enabled Show File Icon
- We set a custom caption of file attachment
- We add a custom images to attachments

This syntax will display attachments from another article by article ID

{cwattachments}