-
- 20 Posts
Could you please give me example where should i insert the id and what syntax i should use for that. Just let’s say ’13’ as uparent??
And another question. How could i use this script (if it is possible) to get random ditto item?
Thank you!
Ditto has the &randomize parameter.
-
- 20 Posts
Oh, i forgot about randomize parameter:))
And found the syntax for that code, it should be:
$rsContent = $modx->db->select("id,content", "modx_jot_content", "uparent=’13’ AND published=1", "RAND()", "1");
Thank you all for your help!