Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

  • title : column header (takes HTML)
  • webskin : webskin used to render the cell
  • sortable : optional boolean, if you want the user be able to sort the column on the column
  • property : mandatory if sortable=true

Examples:

Code Block
borderStyledotted
titleObject Admin Custom list exampleborderStyledotted
<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 />

...