Implements the ability to have customized and configurable list views for specific content types
This commit is contained in:
@@ -256,6 +256,10 @@
|
||||
<key alias="tab">Tab</key>
|
||||
<key alias="thumbnail">Thumbnail</key>
|
||||
<key alias="hasListView">Enable list view</key>
|
||||
<key alias="customizeListView" version="7.2">Customize list view</key>
|
||||
<key alias="currentListView" version="7.2">Current list view</key>
|
||||
<key alias="createListView" version="7.2">Create custom list view</key>
|
||||
<key alias="removeListView" version="7.2">Remove custom list view</key>
|
||||
</area>
|
||||
<area alias="editdatatype">
|
||||
<key alias="addPrevalue">Add prevalue</key>
|
||||
|
||||
@@ -251,7 +251,7 @@
|
||||
</area>
|
||||
|
||||
<area alias="editcontenttype">
|
||||
<key alias="allowedchildnodetypes">Allowed child nodetypes</key>
|
||||
<key alias="allowedchildnodetypes">Allowed child node types</key>
|
||||
<key alias="contenttypecompositions">Document Type Compositions</key>
|
||||
<key alias="create">Create</key>
|
||||
<key alias="deletetab">Delete tab</key>
|
||||
@@ -260,6 +260,10 @@
|
||||
<key alias="tab">Tab</key>
|
||||
<key alias="thumbnail">Thumbnail</key>
|
||||
<key alias="hasListView">Enable list view</key>
|
||||
<key alias="customizeListView" version="7.2">Customize list view</key>
|
||||
<key alias="currentListView" version="7.2">Current list view</key>
|
||||
<key alias="createListView" version="7.2">Create custom list view</key>
|
||||
<key alias="removeListView" version="7.2">Remove custom list view</key>
|
||||
</area>
|
||||
<area alias="editdatatype">
|
||||
<key alias="addPrevalue">Add prevalue</key>
|
||||
|
||||
@@ -78,8 +78,39 @@
|
||||
</cc2:PropertyPanel>
|
||||
|
||||
<cc2:PropertyPanel ID="pp_isContainer" runat="server" Text="Container<br/><small>A container type doesn't display children in the tree, but as a grid instead</small>">
|
||||
<asp:CheckBox runat="server" ID="cb_isContainer" Text="Yes" /><br />
|
||||
<asp:CheckBox runat="server" ID="cb_isContainer" Text="Yes" />
|
||||
|
||||
<%if (cb_isContainer.Checked) { %>
|
||||
<p id="container-config-panel">
|
||||
<a href="#">Configure list view...</a>
|
||||
</p>
|
||||
<%--Scripting to show hide the button if the doc type is already configured to be a list view--%>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$("#<%= cb_isContainer.ClientID %>").on("change", function () {
|
||||
if ($(this).is(":checked")) {
|
||||
$("#container-config-panel").slideDown();
|
||||
}
|
||||
else {
|
||||
$("#container-config-panel").slideUp();
|
||||
}
|
||||
});
|
||||
|
||||
$("#container-config-panel a").click(function() {
|
||||
UmbClientMgr.openAngularModalWindow({
|
||||
contentTypeAlias: "<%=ContentTypeAlias%>",
|
||||
contentTypeId: "<%=ContentTypeId%>",
|
||||
template: "views/contenttype/listview.html"
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<%} %>
|
||||
|
||||
</cc2:PropertyPanel>
|
||||
|
||||
</cc2:Pane>
|
||||
|
||||
<cc2:Pane ID="Pane5" runat="server">
|
||||
|
||||
Reference in New Issue
Block a user