Hi guys,
Im trying to execute an @SELECT inside the default value of an TV. But the @SELECT works only when i putit in the input option values. Should it be like this?
Alex.
i think in the default value too
No, it doesnt accept it. any ideas?
i think it works in later versions ??
is the query ok?
There is an icon appears only against those fields in which you can use @Bindings, if that icon is not there for "default value" then it will not work.
regards.
zi
The icon is there, the query works ok when its in the input options value (@SELECT id,pagetitle FROM modx_site_content WHERE parent = 7) but not in the default value. Also i would like to have the drop down in the form of "pagetitle" with value the document id, like a <select option="2">Alex</select>. What kind of delimiter should i use and how to set it up?
I just quickly checked your query in default 095 install and it worked. screenshot attached, look for 3 Add a Blog Entry||9 Mini-Blog HOWTO||18 Just a pretend, older post.
To create the <select>... stuff you need to create a snippet which will parse the tv values and make it <select> tag AFAIK.
here is the product editing
here is the site design just for you to see what modx will support.