Hi,
first of all, I’m using modx 1.0.2 evolution.
I use a DropDownList in one of my TVs, with the following binding:
@SELECT pagetitle,id FROM modx_site_content WHERE published=1 AND hidemenu=0 ORDER by pagetitle ASC
It shows dynamically all resources, which works well so far.
The DropDownList takes the id (for example: 123) as option value and the pagetitle (here: mypagetitle) as option text:
<option value="123">mypagetitle</option>
However, I would like to return the id after the option text, too. The HTML code of TV looks like that:
<option value="123">mypagetitle (123)</option>
How can I achieve this?
Thanks a lot in advance!