i just worked on Etomite for a couple of weeks only i found that i need a drop down list in the document editor that from this list i can select the snippets that i want to insert it into the document it works for chunk to
so i did this section and here is the code
after the selection of the content Type list add this lines in mutate_content.dynamic.action.php
-------------------------------------------------------------------------------------
<TR>
<TD class='warning'><?=$_lang['insert_snippet'];?></TD>
<TD>
<select size=1 name="contentsnippet" class="inputBox" onChange='documentDirty=true;InsertSnippet(this)' style="width:150px">
  <option value=""> - </option>
<?php
$sqlsnippets = "select name from $dbase.".$table_prefix."site_snippets ";
$rssnippets = mysql_query($sqlsnippets);
while ($rowsnippets = mysql_fetch_assoc($rssnippets))
 {
 ?><option value="[[<?=$rowsnippets['name']?>]]"><?=$rowsnippets['name']?></option><?
 }
?>
</select>
<img src="media/images/icons/b02_trans.gif" onMouseover="this.src='media/images/icons/b02.gif';" onMouseout="this.src='media/images/icons/b02_trans.gif';" alt="<?=$_lang['insert_snippet_help']; ?>" onClick="alert(this.alt);" style="cursor:help;">
<script>
function InsertSnippet(selected1)
{
SnippetName=selected1.options[selected1.selectedIndex].value;
if (document.selection) {
     if(typeof(editor)!="undefined")
         {
         editor.insertHTML(SnippetName)
         }
     else
         {
         mutate.ta.focus();
         sel = document.selection.createRange();
         sel.text = SnippetName;
         }
}
}
</script>
</TD>
</TR>
-------------------------------------------------------------------------------------:betterwink:










