The taxonomy image module< allows site administrators to associate images with taxonomy terms. Once defined, this association allows Drupal themes or other PHP code to display images with site content. For example, the taxonomy_image module might be used to display a penguin with content about Linux, and a cheeseburger with content about junk food.
The module allows the Drupal administrator to create a one-to-one term-to-image relationship. With image display recursion, it is also possible to create a many-to-one relationship. This is useful if creating taxonomy hierarchies in which an entire tree of terms will use the same image. With recursion enabled, you only need to associate an image with the tree parent, and all children will automatically inherit the same image.
<img><
markup when displaying images.<img><
tag is allowed, including animated gifs.Administer >> Site configuration >> File settings<
. Taxonomy Image will create another directory within the default file directory.The overall module settings are found at Administer >> Site configuration >> Taxonomy Image<
.
Administer >> Site configuration >> File settings<
) where the category pictures will be stored.The following will be ignored if an Imagecache preset is chosen (either by default or at run time). However, if the Imagecache preset provided is "ORIGINAL," Taxonomy Image will use these, so they should be set.
If you don't understand what this means, then it's a good idea to not enable it.
The taxonomy_image.module provides three permissions:
Note that you need to enable the 'access taxonomy images' permission for users that should see the taxonomy images.
With the taxonomy_image module enabled, images can be uploaded and associated with category terms at Administer >> Content management >> Categories >> Images<
(this is a tab called "Category images"). On that page you will find tables containing all your vocabularies and terms. Next to each term is a link titled "upload image," which you can click to upload an image for that term. After clicking that link, you will be taken to another page with a small "Add images" form. Using the "browse" button you can select your image then click "Save."
Continue this process to upload appropriate images for your category terms. Note that by default, images will be displayed at the size they were uploaded. Alternatively, you can go to settings page (described above) to force the display height and/or width of all taxonomy images.
Taxonomy is a very powerful tool and one of Drupal's best. One of its features is providing the ability to create hierarchical vocabularies, with which you can build a tree of terms. It is possible that an entire tree of terms, or even just a branch of terms, are all about a similar subject and should all be associated with the same image. By going to Administer >> Site configuration >> taxonomy_image<
, you can enable "Recursive image display." With this option enabled, you only need to configure an image for the parent term, and all children will automatically inherit the same image (unless they are manually configured to display an alternative image).
Recent comments
12 years 31 weeks ago
12 years 31 weeks ago
12 years 42 weeks ago
12 years 47 weeks ago
13 years 18 weeks ago
13 years 28 weeks ago
13 years 35 weeks ago
13 years 35 weeks ago
13 years 41 weeks ago
13 years 44 weeks ago