Home
Wiki
Home
Wiki
  1. 2. Components
  • Back to home
  • 1. Themes
  • Vs Code
    • Getting Started
  • Kitchenware
    • Layout
      • New Layout
      • Legacy Layout
    • Components
      • Announcement
      • Banner Carousel
      • Banner With Products Carousel
      • Blog Category List
      • Blog List
      • Brand List
      • Brands Carousel
      • Breadcrumb
      • Call To Action
      • Cart
      • Categories List
      • Change Password
      • Checkout
      • Cookie Manager
      • Filter list
      • Footer
      • Forgot Password
      • Form
      • Hero Carousel
      • Icon Block
      • Invitation
      • Last Visited Products
      • Layout
      • Login
      • Map
      • Nav Bar
      • Offer
      • Product Attachments
      • Product Attributes
      • Product Documentation
      • Product Expected
      • Product Modal
      • Products Block
      • Products Carousel
      • Product Single
      • Profile
      • Quote
      • Register
      • Related Products
      • Search
      • Stores
      • Subscribe Newsletter
      • Text with Image
      • Top Bar
      • Video
    • Reusables
      • Getting Started
    • Assets
      • Getting Started
    • SDK
      • Products
        • _findProductsByCategory
        • _findProductsByIds
        • _findProductsByTitle
        • _findProductsByFilter
        • _findProductsByCriteria
        • _findProductsAndCalculate
        • _findProductsThenCalculate
        • _getProductAttributeSet
        • _setLastVisited
      • Categories
        • _findCategoryTreeById
        • _findCategoriesByIds
        • _findCategoryByAlias
        • _findCategoryTreeByAlias
        • _getCategoryContent
      • Collections
        • _getCollectionContent
        • _findCollectionsByIds
        • _findCollectionsByIdsThenCalculate
      • Brands
        • _getBrandContent
        • _findBrandsByIds
      • Cart
        • _addToCartMulti
        • _addToCart
        • _setCart
        • _clearCart
        • _setCartListener
        • _removeFromCart
        • _calculateCart
      • Checkout
        • _startCheckout
        • _updateCheckout
        • _completeCheckout
      • Shopping Lists
        • _getShoppingLists
        • _updateShoppingList
        • _createShoppingList
        • _deleteShoppingList
        • _getShoppingListByAlias
      • Navigation
        • _getFooterMenu
        • _getHeaderMenu
      • Users
        • _getUserById
      • Utils
        • _calculateCurrency
        • _getCurrencySymbol
        • _getCulture
        • _subscribeToNewsletter
        • _findUnitsByIds
  • Noir
    • 0. Introduction
    • 1. Structure
      • Overview
      • LayoutA.liquid
      • ComponentsList.liquid
      • Metas.liquid
      • CssVariables.liquid
      • Json.liquid
      • GoogleTagManager.liquid
      • StagingButton.liquid
    • 2. Components
      • Overview
      • Announcement
      • BannerCarousel
      • BlogCategoryList
      • BlogList
      • BrandList
      • Breadcrumb
      • Cart
      • CategoriesList
      • ChangePassword
      • Checkout
      • CookieManager
      • FilterList
      • Footer
      • ForgotPassword
      • Form
      • IconBlock
      • Invitation
      • LastVisitedProducts
      • Login
      • Map
      • NavBar
      • ProductAttachments
      • ProductAttributes
      • ProductComparison
      • ProductDocumentation
      • ProductMixList
      • ProductsBlock
      • ProductsCarousel
      • ProductSingle
      • Profile
      • Register
      • RelatedProducts
      • SingleBlog
      • Stores
      • TextWithImage
      • ThankYouPage
      • TopBar
      • Wishlist
    • 3. Reusables
      • Overview
      • Addresses
      • BillingRetail
      • AddressForm
      • AnnouncementModal
      • BackToTop
      • Company
      • General
      • Login
      • LoginModal
      • Orders
      • Payment
      • ProductAttachments
      • ProductAttributes
      • ProductComparisonButton
      • ProductComparisonFloatingButton
      • ProductGridItem
      • ProductListItem
      • ShoppingListsButton
      • ProductModal
      • ProfileInfo
      • PromptModal
      • Register
      • Shipping
      • ShoppingLists
      • ShoppingListsNavbar
      • Toast
      • Users
      • VariantContent
      • WishlistButton
      • Services
    • 4. Assets
      • Fonts
      • Images
      • Templates
      • Javascript
        • Overview
        • theme.js
      • Css / Scss
        • Overview
        • ThemeClasses
    • 5. SDK
      • Overview
      • LiquidGlobals
      • ServicesSDK
  1. 2. Components

ProductAttachments

Purpose#

The ProductAttachments component renders a simple list of product-related attachments (PDFs, manuals, etc.) on the Product page.
It:
Shows an optional header/title.
Renders nothing when there are no attachments.
Delegates the actual list rendering to the reusable Reusables\\ProductAttachments\\Default.

Inputs (model contract)#

Model shape (storefront example)#

{
  "settings": {
    "id": "Component Id",
    "section": "SectionA",
    "type": "NoirProductAttachments",
    "name": "ProductAttachments",
    "configuredInContentApi": true,
    "view": "Default",
    "displayName": "Sample text",
    "cssClass": "",
    "header": "Sample text",
    "alignment": "Left"
  },
  "attachments": [
    {
      "alt": "sample-file.pdf",
      "link": "https://example.com/media/sample.pdf",
      "title": "sample-file.pdf",
      "icon": {
        "link": "#"
      }
    },
    "..."
  ],
  "name": "ProductAttachments",
  "view": "Default",
  "section": "SectionA",
  "translations": {
    "": null
  }
}

Required fields#

settings.id
attachments[]
The component renders only when attachments.size > 0.

Optional fields#

settings.cssClass
settings.header
When provided (non-empty), rendered as an <h2> above the list.
settings.alignment
Controls the alignment of the header block.
Supported values (as used in Liquid): Left (default), Center, Right.

JavaScript#

There is no client-side behavior for this component.
Components/ProductAttachments/Default.js defines an empty object so the component matches the theme's component structure.
const productattachmentsdefault = {};

Dependencies#

Liquid reusable: Reusables\\ProductAttachments\\Default

Notes#

The component is used in Pages/product.json (SectionA).
Links are rendered as <a target="_blank">.
Each attachment row shows a PDF icon using the class: ic-pdf.

Extras#

Template behavior (Liquid)#

Reads:
model.Settings.Header
model.Settings.Alignment
model.Attachments
Render condition:
The entire <section> is rendered only if attachments exists and attachments.size > 0.

Reusable rendering#

The list is rendered by:
{% render 'Reusables\\ProductAttachments\\Default', attachments: attachments %}
Modified at 2026-04-14 13:18:56
Previous
NavBar
Next
ProductAttributes
Built with