Accessing Attachments

Created by Fawzia Aleem, Modified on Tue, 18 Jun, 2024 at 4:42 PM by Fawzia Aleem

You can customize how your pages (and users) access attachments in your solutions and forums. For example, you can create a layout that will automatically show the thumbnail of the first image attachment alongside the solution’s overview. Any image attachments will automatically create a corresponding thumbnail as well.


Placeholder

Return Type

What they mean

attachment.url url URL to the attachment
attachment.thumbnail url Preview image of the attachment file
attachment.extension string The file extension of the attachment (.doc, .jpg etc)
attachment.filename string The filename of the attachment without the extension
attachment.size number File size of the attachment
attachment.is_image? boolean Returns true or false based on whether the attachment is an image or not  

PLUS Cloud files

Here's the list of placeholders for other categories such as, General Portal Information, Managing User Access, Forums, Access to Solutions, and Using Snippets for critical behaviour.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article