Developer forum

Forum » CMS - Standard features » Query Publisher - get array values

Query Publisher - get array values

Nuno Aguiar
Reply

Hi,

 

Using the Query Publisher, how can I have access to values in an array? I tried to use TemplateTags in the deafult template, but only got back the field type

http://screencast.com/t/El3kvWaRP

 

Best Regards,

Nuno Aguiar


Replies

 
Nicolai Høeg Pedersen
Reply

Try this:

<ul>
@{
    foreach (string value in GetObject("GroupIDs"))
    {
        <li>@value</li>
    }
}
</ul>

 
Nuno Aguiar
Reply

Hi Nicolai,

 

It does not work. We tried a number of different ways but never got it working

Check out the result: http://rizzo.dw-demo.com/test

 

Do you have any other ideas?

 

Best Regards,

Nuno Aguiar

 

You must be logged in to post in the forum