attributeSections

Last modified by Joel Schmalöer on 14.09.2022, 14:00

This page contains code examples for attribute sections in feed/export.

Tested for PIM 8.22 | PXM 1.3.7

Note: Exports data regardless of a product affiliation.

Iterator

<#list attributeSections as key, attributeSection>
    ${attributeSection.attributeSectionId}
</#list>

Example result

TechnischeMerkmale
Elektrische Daten
MBildWiederholraten
Ueberblick
Address
Abmessungen
organisation
OtherInformation
Zubehoer
MC_Interfaces
Anschluesse
MC_Display
...

All fields (JSON format)

<#assign languages=["en-GB", "de-DE"]>
{
    "attributeSections" :
    <#list attributeSections as key, attributeSection>
    {
        "attributeSectionId" : "${attributeSection.attributeSectionId}",
        "fallbackShortDescription" : "${(attributeSection.fallbackShortDescription)!}",
        "orderNo" : "${(attributeSection.orderNo)!}",
        "shortDescriptions" :
        {
            <#list languages as language>
            "${language}" : "${(attributeSection.shortDescriptions[language])!}",
            </#list>
        },
        "longDescriptions" :
        {
            <#list languages as language>
            "${language}" : "${(attributeSection.longDescriptions[language])!}",
            </#list>
        },
        "createdOn" : "${(attributeSection.createdOn)!}",
        "changedOn" : "${(attributeSection.changedOn)!}",
    }
    </#list>
}

Example result

{
   "attributeSections" :
    {
       "attributeSectionId" : "MC_Interfaces",
       "fallbackShortDescription" : "$Section_Interfaces",
       "orderNo" : "7",
       "shortDescriptions" :
        {
           "en-GB" : "Interfaces",
           "de-DE" : "Anschlüsse",
        },
       "longDescriptions" :
        {
           "en-GB" : "",
           "de-DE" : "",
        },
       "createdOn" : "May 9, 2022 12:04:45 AM",
       "changedOn" : "May 9, 2022 12:04:45 AM",
    }
    {
       "attributeSectionId" : "MC_Certificates",
       "fallbackShortDescription" : "$Section_Certificates",
       "orderNo" : "3",
       "shortDescriptions" :
        {
           "en-GB" : "Certificates",
           "de-DE" : "Zertifikate",
        },
       "longDescriptions" :
        {
           "en-GB" : "",
           "de-DE" : "",
        },
       "createdOn" : "May 9, 2022 12:04:45 AM",
       "changedOn" : "May 9, 2022 12:04:45 AM",
    }
    {
       "attributeSectionId" : "Details",
       "fallbackShortDescription" : "",
       "orderNo" : "2",
       "shortDescriptions" :
        {
           "en-GB" : "Details",
           "de-DE" : "Details",
        },
       "longDescriptions" :
        {
           "en-GB" : "",
           "de-DE" : "",
        },
       "createdOn" : "May 9, 2022 12:02:59 AM",
       "changedOn" : "May 9, 2022 12:06:33 AM",
    }
}
Tags: