Developer forum

Forum » CMS - Standard features » How to get a specific value in datalist?

How to get a specific value in datalist?

Mateus Ávila Isidoro
Reply

HI!

I am needing
access the specific fields of DataList, but I can not give results. I saw that on page templates to get a specific value of a ROW enough to put the field name + value, eg <! - @ PageID.Value-->, but nothing happens. I tried using the same scheme FORMS to access a specific value, but had no effect. I post below the code I'm using:

<ul class="dragOn">
<!--@LoopStart(Rows)-->
<li>
<!--@LoopStart(Row)-->
<i> <!--@ ParagraphID.Value--> | </ i> <b> <!--@ParagraphText.Value--> | </ b>
<!--@LoopEnd (Row)-->
</li>
<!--@ LoopEnd (Rows)-->
</ul>

Replies

 
Bjarne Rosendal
Reply

Hi Mateus

To return the value of the row, you should use the row.value tag:
http://templates.dynamicweb-cms.com/TemplateTags/Dynamicweb-template-tags/Module-tags/Data-Lists/List/Loops/Row/Row.Value.aspx

Best regards
Bjarne Rosendal
Dynamicweb Support
 
Mateus Ávila Isidoro
Reply
If I try this, return the values setted on the module. I need the way to build in template, like:

<a href="#<!--@ParagraphID.Value-->"><!--@ParagraphName.Value--></a>

 

You must be logged in to post in the forum