欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

configure page size for taxonomy using services

shiping1 的头像

configure page size for taxonomy using services

Last updated June 13, 2013. Created by ellishettinga on June 13, 2013.
Log in to edit this page.

The services module limits the amount of taxonomy vocabularies and taxonomy terms it shows to 20 by default.

This is how you can configure it to serve more vocabularies/terms:

For Drupal 6 add this to the database:
for terms:
insert into variable VALUES ('services_taxonomy_term_index_page_size', 'i:200;');
for vocabularies:
insert into variable VALUES ('services_taxonomy_vocabulary_index_page_size', 'i:100;');

For Drupal 7 it's easier: add this to the settings.php file
for terms:
$conf['services_taxonomy_term_index_page_size'] = 200;
for vocabularies:
$conf['services_taxonomy_vocabulary_index_page_size'] = 200;
After this restart your webserver (D7 only) and clear cache to see the change.

来自
普通分类: