You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

RPL looping

I have a situation where I have to evaluate a subscriber and the articles assigned to them, and I am looking for the simplest way to evaluate a number of data points for one record.

For example, the record looks like the following

First Name | Article001 | Article002 | Article003 |

John Smith | Y | | Y |


John Smith should see Article001 and Article003. These are individual .html files stored in the content library.


<#if Article001 == Y><#include "cms://contentlibrary/Article001.html">

<#if Article002 ==Y><#include "cms://contentlibrary/Article002.html">

<#if Article003 == Y><#include "cms://contentlibrary/Article003.html">

</#if>


Ideally, I'd like to insert these in a macro to test each value first and then loop through these instead of defining each article manually.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!