I was searching through typeadmin for something unrelated to this post and found something interesting that I thought I’d share.
It often annoys me that there are only 15 items displayed per page. Show me a site that’s been live for more than a month and I’ll show you an image library with WAY more than 15 items. Usually there are more than 15 pages.
Typeadmin takes a couple of attributes that I was not aware of until today (numitems and numPageDisplay). Here are their defaults:
<cfparam name="attributes.numitems" default="#application.config.general.GENERICADMINNUMITEMS#" type="numeric">
<cfparam name="attributes.numPageDisplay" default="5" type="numeric">
As you can see, numitems can be configured in the general config area. However if you want to override the default, here is an example of how:
<widgets:typeadmin
typename="dmRecurringEvent"
permissionset="event"
title="Recurring Event Administration"
bdebug="0"
numitems="50"
numPageDisplay="10">
</widgets:typeadmin>

Related Articles
No user responded in this post
Leave A Reply