...
Attribute | Description | Value | Version |
---|---|---|---|
title | The title of the page | Defaults to "#attributes.typename# Administration" | |
typename | The typename | Defaults to "" | |
ColumnList | List of the columns to be displayed | Defaults to "label,datetimelastupdated" | |
aCustomColumns | Array holding data for rendering the cells | Defaults to empty array | |
SortableColumns | list of the properties the user will be able sort on | Defaults to "" | |
lFilterFields | list of the propeties properties the user will be able filter on | Defaults to "" | |
sqlorderby | default sorting SQL expression | Defaults to "datetimelastupdated desc" | |
sqlWhere | Define a where clause filter. This filter will always be applied to the data provider for the object admin. | No filter applied by default. For example, status IN ('draft', 'pending') would only show draft and pending content items. | |
lCustomActions | Custom list of actions to appear in the Action drop-down. | For example - duplicate:Duplicate,remove:Remove Me | |
stFilterMetaData | Structure of formtool metadata passed in to filter form. | For example, use this if you want to change the edit behaviour of a property specifically for the filter area of object admin. | |
bSelectCol | Show the select checkbox column. You need this to interact with the default buttons except add. | Defaults to true |
|
bShowActionList | Show the drop down list of actions. | Defaults to true | 4.0.7 |
Code Block | ||
---|---|---|
| ||
<!--- import tag libraries ---> <cfimport taglib="/farcry/core/tags/formtools" prefix="ft" /> <cfimport taglib="/farcry/core/tags/admin/" prefix="admin" /> <!--- set up page header ---> <admin:header title="Users Listing" /> <ft:objectAdmin title="my custom listing page" typename="myTypeName" ColumnList="fullname,datetimelastUpdated,PublishDate,CompanyID" SortableColumns="fullname,datetimelastUpdated" lFilterFields="fullname,userCategory" sqlorderby="datetimelastupdated desc" /> <!--- page footer ---> <admin:footer /> |
...
Custom actions is a comma delimeted delimited list of variable:value pairs. The variable becomes the form post action and the value the visible list item.
...
Custom Columns or Cell Renderers
You can build a webksin webskin to render content for each content item in a nominated cell of the content listing grid; often called a cell renderer.
...
Code Block | ||||
---|---|---|---|---|
| ||||
<cfimport taglib="/farcry/core/tags/formtools" prefix="ft" /> <cfimport taglib="/farcry/core/tags/admin/" prefix="admin" /> <!--- set up page header ---> <admin:header title="Users Listing" /> <cfscript> aCustomColumns = arrayNew(1); aCustomColumns[1] = structNew(); aCustomColumns[1].webskin = "showThumbnail.cfm"; // located in the webskin of the type the controller is listing on aCustomColumns[1].title = "thumb"; aCustomColumns[1].sortable = true; //optional aCustomColumns[1].property = "imageUrl"; //mandatory is sortable=true </cfscript> <ft:objectAdmin title="my custom listing page" typename="myTypeName" ColumnList="fullname,datetimelastUpdated,PublishDate,CompanyID" aCustomColumns="#aCustomColumns#" SortableColumns="fullname,datetimelastUpdated" lFilterFields="fullname,userCategory" sqlorderby="datetimelastupdated desc" /> <admin:footer /> |
...