Posted by yigitsayan on November 8, 2012 at 9:41pm
Hi Guys,
I want to change the pagination of the drupal admin panel taxonomy term list page. In panel when i display the term datas if it is more than 100, automatically a pagination appears how can i configure it and remove it?
Thank you
Comments
Pagination established by taxonomy_terms_per_page_admin variable
I found that the limit per page is set by a variable in the taxonomy module. There's a call to get the value on Line 262 of taxonomy.admin.inc:
$page_increment = variable_get('taxonomy_terms_per_page_admin', 100); // Number of terms per page.But unless I'm overlooking something, it's never actually SET in the code, and it's not configurable. So it always hits the default. This caused me some problems because I wanted to do some custom sorting of one of our taxonomy term lists, but finding it impossible when the list is paginated. Every time I save the order, the weights are reset. So there's no way to move items between pages, for example.
The simple workaround in my case was to set this default a bit higher, allowing the whole list to display on one page. Obviously I don't want to be changing anything in core, but I haven't found a more straightforward fix yet.