Adding documents to the Product Documents library and linking them to a product

min read

Overview

  • Documents live in the Product Documents asset family. Each document is an asset.
  • Accepted file types: PDF and CSV.
  • A document is visible on a product once it is linked through the product's Product Documents attribute. The product's family must include this attribute.
  • You need edit rights on the asset family and on the product.

2. Localization: one document, one file per region

The File and Display Name fields are localizable. One asset can hold a different file for each locale, so you don't need a separate asset per language or region.

The File and Display Name fields are localizable. One asset can hold a different file for each locale, so you don't need a separate asset per language or region.

Example: the asset HEATER-X200-USER-MANUAL holds:

  • English (UK): file x200-manual-en_GB.pdf, display name "X200 User Manual - EN"
  • German: file x200-manual-de_DE.pdf, display name "X200 Bedienungsanleitung - DE"
  • French: file x200-manual-fr_FR.pdf, display name "X200 Manuel d'utilisation - FR"

File

Yes

Display Name

Yes. To ensure the correct display name is mapped to the correct version include the language code in the name i.e. - FR

Category, Target Audience, Release Date

No, shared by all locales (but category labels are translated per locale)

3. Add a document and link it to a product

Option A: Upload from the product (fastest)

Use this when the document is not in the library yet. It is created in the library and linked in one go.

  1. Open the product and click the Assets tab.
  2. Scroll to Product Documents and click Upload asset.
  3. Drag and drop your file(s), or browse to select them.
  4. In the required Locale column, confirm or choose the locale for each file (see section 4).
  5. Click Add to product, then Save the product.

Option B: Add to the library first, then link

Use this to prepare the document before linking, or to reuse it across products.

Create the document

  1. Open the Asset Manager and select Product Documents.
  2. Create a new asset with a clear, unique code (for example, HEATER-X200-USER-MANUAL).
  3. Upload the PDF or CSV in File and choose its locale.
  4. Fill in the optional fields: Display Name (per locale), Category, Target Audience, Release Date.
  5. Save the asset.

Link it to the product

  1. Open the product, click the Assets tab, and under Product Documents click Add asset.
  2. In the asset picker, search by label or code, or use the filters.
  3. Select one or more documents. They appear in the basket on the right.
  4. Click Confirm, then Save the product.

4. Working with locales

On upload

  • A required Locale column appears.
  • If the filename contains the locale code (for example x200-manual-de_DE.pdf), the locale is filled in automatically. You can change it.
  • If not, pick the locale from the dropdown, then click Create.

Adding other regions to an existing asset

  1. Open the asset in the library and go to File.
  2. Switch the locale selector and upload the file for that locale.
  3. Repeat for Display Name.

How regional pages pick the right file

  • The asset is linked to the product once. The link is not regional.
  • A German page or export shows the German file, a French one the French file.
  • If a locale has no file, nothing is shown for that region. Add a file for every locale you publish to.
  • The Product Documents attribute is not localizable, so every locale sees the same linked documents, each with its own locale-specific file. If a region needs a different set of documents, ask your administrator, as this is a catalog configuration question. (The DCP Shopify Documents attribute is localizable, so its links can differ per locale.)

Tip:

Name files with the locale code (name-fr_FR.pdf). Uploads then assign each file to the right locale automatically.

5. Managing linked documents

  • Remove a link: hover over the document in the product's Assets tab and click the remove icon. The document stays in the library.
  • Edit a document: hover over it and click edit to update its attributes.
  • Product models: the same steps work on a product model's Assets tab, so variants inherit the documents.

 

Important: Akeneo is intended as the source of truth for product documentation. When an import of documentation is sent to the Drupal website outdated documentation is removed from the website.

The logic for the deletion is documents that are not in the document import, that are related to a product and not tagged with Archived are removed.

In short this means that when you remove or unlink a document in Akeneo it is also removed in Drupal.

6. Tips

  • Upload every region's file to the same asset so one link covers all regions.
  • Use consistent codes and display names so documents are easy to find in the picker. Put the language in the filename only.
  • Before publishing to a new region, open the asset and check that File has a value for that locale.
  • If Product Documents is missing from the Assets tab, ask your administrator to add it to the product's family.
  • Other asset families exist (Datasheets, Manuals, DCP Shopify Documents). Check with your administrator which one to use for each document type, as each is linked through its own attribute.