Expand my Community achievements bar.

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

Thanks, Sathees

View solution in original post

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

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' %>
<%}

%>