Featured content list - what is the difference between TargetContainerId and ContainerId

In the options for featured content list v2 there are 2 similar values can someone please explain the difference between the 2 ?

FeaturesListOptions (v2) In-Process API Supplementary Type

TargetContainerId  and ContainerId

I have tried locally with some featured content in a group, setting either of the above values seems to get the same response

I would appreciate some explanation as to the usage of the 2 values and how they effect the results
Parents
  • Former Member
    +1 Former Member

    While the interface for adding featured content that is provided with Community limits you to the same group the content is in or the entire site, the underlying functionality is not limited in this way.  Any content can be featured to any group.  So ContainerId is the group the content is in, while TargetContainerId is the group where the featured item will be displayed.

    So using ContainerID on the list query would list all items that exist in the ContainerId group that are featured anywhere

    and using TargetContainerId would list all items that are featured to the TargetContainerId group that are anywhere on the site.

Reply
  • Former Member
    +1 Former Member

    While the interface for adding featured content that is provided with Community limits you to the same group the content is in or the entire site, the underlying functionality is not limited in this way.  Any content can be featured to any group.  So ContainerId is the group the content is in, while TargetContainerId is the group where the featured item will be displayed.

    So using ContainerID on the list query would list all items that exist in the ContainerId group that are featured anywhere

    and using TargetContainerId would list all items that are featured to the TargetContainerId group that are anywhere on the site.

Children