When adding a new or existing field to Taxonomy Fields, all existing taxonomies show up in the "Select vocabulary to assign" section. This causes two problems:
1. If you use a rather large taxonomy (I have one with about 20.000 entries) the page will not load:
user warning: MySQL server has gone away query: UPDATE cache_content SET data = 'a:4:{s:11:\"field types\";a:11:{s:13:\"nodereference\";a:3:{s:5:\"label\";s:14:\"Node Reference\";s:6:\"module\";s:13:\"nodereference\";s:10:\"formatters\";a:2:{s:7:\"default\";a:3:{s:5: \"label\";s:7:\"Default\";s:11:\"field types\";a:1:{i:0;s:13:\"nodereference\";}s:6:\"module\";s:13:\"nodereference\";}s:5: \"plain\";a:3:{s:5:\"label\";s:10:\"Plain text\";s:11:\"field types\";a:1:{i:0;s:13:\"nodereference\";}s:6:\"module\";s:13:\"nodereference\";}}}s:14: \"number_integer\";a:3:{s:5:\"label\";s:7:\"Integer\";s:6:\"module\";s:6:\"number\";s:10: \"formatters\";a:5:{s:7:\"default\";a:3:{s:5:\"label\";s:4:\"9999\";s:11:\"field ... ...
2. If you have some taxonomies, which are required and not multiple select, you can't disable them (because there are comboboxes) and so you have to create unwanted fields and delete them afterwards.
I propose to have a configuration site first in witch you can select the taxonomies, witch should be used for assigning of Taxonomy Fields. As a spin-off the pages “add existing field” and “add new fields” will become much more clearly arranged.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | taxonomy_fields.txt | 75.47 KB | boneless |
Comments
Comment #1
boneless commented20.000?!? wow!
ok i see were the problem is, will fix this in the next version.
gimme a week or two and i'll have time for it.
Comment #2
smitty commentedwaiting (un)patiently
Comment #3
boneless commentedhey there,
thanks for your patience.
have a look at the attached file and see if it does the trick for you.
just rename the .txt into .module. sorry have no program to pack files at the moment.
please check the following:
fields for vocabularies can be now enabled/disabled in the vocabulary settings.
disabled vocabularies don't show up on the 'add field' and 'manage fields' pages.
all vocabularies should now have a pre-selected 'none' option.
the 'manage terms' page is not updated yet, i'll probably write a new system for that.
please note that taxonomy fields are disabled by default for all vocabularies, so you have to enable those you want to use in the vocabulary settings.
but be careful this version hasn't been tested at all!!!
make sure you have backups!
so far
b
Comment #4
smitty commentedThank you very much for the new feature. It works fine on my test site with only small taxonomies.
But on the site wit the big taxonomy I get se same problem as before: Opening the "Taxonomy Fields" menu or going to the "add existing field" tab results an error message:
# user warning: Table 'travunity-test.cache_content' doesn't exist query: SELECT data, created, headers, expire FROM cache_content WHERE cid = 'taxonomy_fields_term_info' in C:\Programme\apache2triad\htdocs\travunity-test\includes\database.mysql.inc on line 172.
# user warning: Table 'travunity-test.cache_content' doesn't exist query: LOCK TABLES cache_content WRITE in C:\Programme\apache2triad\htdocs\travunity-test\includes\database.mysql.inc on line 172.
# user warning: MySQL server has gone away query: UPDATE cache_content SET data = 'a:4:{s:11:\"field types\";a:10:{s:13:\"nodereference\";a:3:{s:5:\"label\";s:14:\"Node Reference\";s:6:\"module\";s:13:\"nodereference\";s:10:\"formatters\";a:2:{s:7:\"default\";a:3:{s:5:\"label\";s:7:\"Default\";s:11:\"field types\";a:1:{i:0;s:13:\"nodereference\";}s:6:\"module\";s:13:\"nodereference\";}s:5:\"plain\";a:3:{s:5:\"label\";s:10:\"Plain text\";s:11:\"field types\";a:1:{i:0;s:13:\"nodereference\";}s:6:\"module\";s:13:\"nodereference\";}}}s:14:\"number_integer\";a:3:{s:5:\"label\";s:7:\"Integer\";s:6:\"module\";s:6:\"number\";
s:10:\"formatters\";a:5:{s:7:\"default\";a:3:{s:5:\"label\";s:4:\"9999\";s:11:\"field types\";a:2:{i:0;s:14:\"number_integer\";i:1;s:14:\"number_decimal\";}s:6:\"module\";s:6:\"number\";}s:4:\"us_0\";a:3:{s:5:\"label\";s:5:\"9,999\";s:11:\"field ... ... ... ... ... ... ...
Afterwards the activated Taxonomy in the section "Select vocabulary to assign an existing field" does not load.
I guess the problem is that the module has to read the whole table "term_data" (which is quite big) when retrieving the activated taxonomy.
Comment #5
csc4 commentedTracking.
I have a taxonomy with about 5,000 at the moment but I expect it to reach at least 10,000 so I'm very interested in this too.
Comment #6
boneless commentedthe problem is solved by now and vocabularies are excludable, just notimplemented in an official release yet.
please contact me if you need the dev version.
Comment #7
boneless commentedimplemented from 5.x-1.5-dev on.