Hey Trevor,
there is no code. I just added the custom interface to see what happens. Just for testing purposes and their i have the "New office" button.
// Creates and adds the "New office" button as a header action
HeaderAction newOffice = new HeaderAction
{
Text = GetString("New office"),
RedirectUrl = "~/CMSModules/CompanyOverview/NewOffice.aspx"
};
But again the custom interface was only for testing reasons created. When i follow the documentation as linked above i end up in the situation with the missing button "New element".
So when i whant to do the following:
Office editing element
- Select Company overview in the UI element tree.
- Click New element ().
-
Set the following properties for the element:
- Display name: Edit office
- Code name: EditOffice (Important: The code name of elements for editing objects under listings must always start with the Edit keyword)
- Module: Company overview
- Page template: New / Edit object
-
Click Save
i cant do it ^^
The only code i've wrote (pasted) was the default.xml
<?xml version="1.0" encoding="utf-8" ?>
<grid>
<actions>
<action name="edit" caption="$General.Edit$" fonticonclass="icon-edit" fonticonstyle="allow" />
<action name="#delete" caption="$General.Delete$" fonticonclass="icon-bin" fonticonstyle="critical" confirmation="$General.ConfirmDelete$" />
</actions>
<columns>
<column source="OfficeDisplayName" caption="Office name" wrap="false" localize="true">
<filter type="text" size="200" />
</column>
<column source="OfficeAddress" caption="Address" width="100%" />
</columns>
<options>
<key name="DisplayFilter" value="true" />
</options>
</grid>