Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

The 4th edition of the Campaign Community Lens newsletter is out now!
SOLVED

Content block

Avatar

Level 4

Could i call one Content block from another content block. Is it possible?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @navink386520,

 

Calling content block from another content block is not possible within ACS as of now. Refer this,

 

https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/content-blocks/td-p/325205

 

Thanks, Sathees

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @navink386520,

 

Calling content block from another content block is not possible within ACS as of now. Refer this,

 

https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-standard/content-blocks/td-p/325205

 

Thanks, Sathees

Avatar

Level 1

@navink386520 ,

You can use this syntax to call a fragment within a content block.

 

 

<%


if(context.targetData.brand == 'hello')

{%>
    <%@include contentModelFragment='CMDL534' %>
<%}


else if(context.targetData.brand == 'world')

{%>
     <%@include contentModelFragment='World_10' %>
<%}

else if(context.targetData.brand == 'working')

{%>
     <%@include contentModelFragment='working_01' %>
<%}

%>