CW Article Attachments - Examples

#Example 4: Show Filesize

{ cwattachments }
Settings:
- Enable Show Filename
- Enabled Show Filesize
- Disabled Show Description
- Enabled Show File Icon
- We set a custom caption of file attachment

#Example 5: Show Description

{ cwattachments }
Settings:
- Enable Show Filename
- Enabled Show Filesize
- Enabled Show Description
- Enabled Show File Icon
- We set a custom caption of file attachment

 

  • Some PDF Document
    Filename: Document.pdf
    Size: 10.94 KB
    This is file description example.
  • Some ZIP archive
    Filename: something_1.zip
    Size: 0.14 KB
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  • Another ZIP archive
    Filename: something_2.zip
    Size: 0.14 KB
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

#Example 6: Add a custom image

{ cwattachments }
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

 

  • Some PDF Document
    Some PDF Document
    Filename: Document.pdf
    Size: 10.94 KB
    This is file description example.
  • Some ZIP archive
    Some ZIP archive
    Filename: something_1.zip
    Size: 0.14 KB
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  • Another ZIP archive
    Another ZIP archive
    Filename: something_2.zip
    Size: 0.14 KB
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

#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}

  • Some ZIP archive
    Some ZIP archive
    Filename: something_1.zip
    Size: 0.14 KB
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  • Another ZIP archive
    Another ZIP archive
    Filename: something_2.zip
    Size: 0.14 KB
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

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}

  • Some PDF Document
    Some PDF Document
    Filename: Document.pdf
    Size: 10.94 KB
    This is file description example.

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.

  • Some ZIP archive
    Some ZIP archive
    Filename: something_1.zip
    Size: 0.14 KB
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  • Another ZIP archive
    Another ZIP archive
    Filename: something_2.zip
    Size: 0.14 KB
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

Advanced Options - Live Examples

Let's find out what can be achieved with CW Article Attachments plugin...

If you dont want attachments displayed under(or above) article content, but inside the content, you can use plugin syntax. Default syntax is { cwattachments } (of course without spaces).

For displaying advanced examples we used a Category Blog of articles, which have set custom settings of plugin parameters to show different ways of attachments display.

Continue...

Check documentation of plugin parameters and what can be set in attachments settingsSEE INSTALLATION & GUIDE

Are you impressed enough to try it? Go to download sectionDOWNLOAD