Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %%[
- VAR @ContentLanguage, @ContentCommentary, @ContentContent, @AllRecordsContent, @RowCountContent, @i,@ClientLanguage, @ClientContent,
- SET @AllRecordsContent = LookupOrderedRows("Weekly Content", 2000, "Sort_Order__c Asc", "Content_Block__c", "Looking Back")
- SET @RowCountContent = rowcount(@AllRecordsContent)
- SET @ClientContent = [Ameraudi_Newsletter_Content__c]
- SET @ClientLanguage = [Ameraudi_Newsletter_Language__c]
- ]%%
- <br>
- <h1 style="font-family:Verdana; font-size:93%; color:DarkBlue;">
- %%[ IF @ClientLanguage == 'English' THEN ]%% LOOKING BACK - MARKET OVERVIEW
- %%[ELSEIF @ClientLanguage == 'Spanish' THEN ]%% ACTUALIZACIÓN DEL MERCADO
- %%[ELSEIF @ClientLanguage == 'Portuguese' THEN ]%% REVISÃO DA SEMANA - VISÃO GERAL DO MERCADO
- %%[ENDIF]%% </h1>
- <ul style="font-family:Verdana; font-size:100%; color:grey;">
- %%[
- IF @RowCountContent > 0 THEN
- FOR @i = 1 TO @RowCountContent DO
- set @ContentCommentary = Field(Row(@AllRecordsContent,@i),"Commentary__c")
- set @ContentContent = Field(Row(@AllRecordsContent,@i),"Content__c")
- set @ContentLanguage = Field(Row(@AllRecordsContent,@i),"Language__c")
- IF IndexOf(@ClientContent, @ContentContent) > 0 AND IndexOf(@ClientLanguage,@ContentLanguage) > 0 THEN
- ]%%
- <li>%%=v(@ContentCommentary)=%% </li>
- <br>
- %%[
- ENDIF
- NEXT @i
- ELSE
- No Rows Found
- ENDIF
- ]%%
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement