Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The auto generated data item editor view currently do not have support for preview.</p> <p>You would need to either move the preview to a 'view' command you show in the tree or create a custom page to create the edit form/preview functionality.</p> <p>Here is a sample Tree Definition file which shows how a new command is attached to an existing data element in the trees:</p> <pre><code>&lt;ElementStructure xmlns="http://www.composite.net/ns/management/trees/treemarkup/1.0" xmlns:f="http://www.composite.net/ns/function/1.0"&gt; &lt;ElementStructure.AutoAttachments&gt; &lt;DataType Type="Composite.Data.Types.IPage" Position="Top" /&gt; &lt;/ElementStructure.AutoAttachments&gt; &lt;ElementRoot&gt; &lt;Actions&gt; &lt;CustomUrlAction Label="View" Url="~/MyView.aspx?Id=${C1:Data:Composite.Data.Types.IPage:Id}" /&gt; &lt;/Actions&gt; &lt;/ElementRoot&gt; &lt;/ElementStructure&gt; </code></pre> <p>To make this hook on to your data type replace the two occurrences of "Composite.Data.Types.IPage" with your types full name (type namespace + name).</p> <p>Tree definitions are stored as xml files in the folder ~/App_Data/Composite/TreeDefinitions - once you put the file there Composite C1 will pick it up, and in this case attach a command to some types of tree elements.</p> <p>Read more about <a href="http://docs.composite.net/Console/Guide-to-Applications" rel="nofollow">Tree Definitions</a>.</p> <p>If you are going for the custom edit form with preview in it you would also use a Tree Definition to 'hook in' your custom form. </p> <p>The custom page you invoke inside the C1 Console need to abide to some rules - grab a copy of ~/Composite/content/views/log/log.aspx and gut it and you have a starting point for your custom page.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload