Quote from: Soda at Jun 15, 2007, 06:27 AM
That’s html stuff and google is your friend
first of all. this litle snipet for checkbox
<?php
// field displayed in checkbox
$item=isset($item)?$item:’hidemenu’;
$result = $modx->documentObject[$item];
if ($result!=0) {
echo "<input name=\"$item check\" type=\"checkbox\" class=\"checkbox\" checked=\"checked\" value=\"$item\" />\n";
echo "<input type=\"hidden\" name=\"$item\" class=\"hidden\" value=\"0\" />\n";
}
else {
echo "<input name=\"$item check\" type=\"checkbox\" class=\"checkbox\" value=\"$item\" />\n";
echo "<input type=\"hidden\" name=\"$item\" class=\"hidden\" value=\"1\" />\n";
}
?>
And this is call in chunk
[[checkbox? &item=`hidemenu`]]
So, it`s not just html stuff.
And now i have a problem with adding docs.
&model parameter dont work correctly.
With out &model parent doc copy them self.
[!FDM? &parent=`88` &model=`121` &eform_tpl=`fdmEformMy`!]
With this ^ i have 404 Eror, and new doc (copy of &model) in &parent dir. I have not access for edit form.
Whats uppppp?