unique id required when sorting records on list page

3 posts by 2 authors in: Forums > CMS Builder
Last Post: August 31, 2009   (RSS)

Re: [Deborah] unique id required when sorting records on list page

By Kenny - August 31, 2009

A lot of times we can just use the Record Number instead. There may be some other ways to do this, but here's one:

Try this....

<div id="div_<?php echo $record['num'] ?>">
<div id="item1_<?php echo $record['num'] ?>">
<?php echo $record['project_title'] ?>
<?php echo $record['project_description'] ?>
</div>
</div>

Alternatively, you can create a textfield to manually put a number in and use that instead.

Kenny

Re: [sagentic] unique id required when sorting records on list page

By Deborah - August 31, 2009

Kenny,

Your advice was right on! Great advice!

I thought I needed sequential numbering, but all I needed was unique numbering, as provided with the $record['num'], as you suggested.

Thanks so much for your assistance.

Deborah