Исходный текст | Переводы |
---|---|
Taxonomy | Таксономия |
Term image | Изображение термина |
The image associated with a taxonomy term. | Изображение, ассоциированное с таксономическим термином. |
Link this image to its term page | Связать данное изображение со страницей его термина. |
Default | По умолчанию |
ImageCache preset | Пресет ImageCache |
<h3>Introduction</h3> <p>The taxonomy_image module allows site administrators to associate images with category terms. Once defined, this association allows Drupal sites 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.</p> <p>The module allows both a one-to-one term-to-image relationship, and a many-to-one terms-to-image relationship.</p> <p>The taxonomy_image module requires that the taxonomy module also be enabled. The Categories module is not currently supported.</p> <h3>Configuration</h3> <h4>Uploading images</h4> <p>With the taxonomy_image module enabled, images can be uploaded and associated with category terms at "Administer >> Content management >> Taxonomy". On that page you will find links to tables containing all your vocabularies and terms. Next to each term is a link titled "edit term" which you can click to upload an image for that term. After clicking that link, you will be you will find the image management section at the bottom of that page. Using the "browse" button you can select your image then click "Save". <p>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 "Administer >> Site configuration >> Taxonomy_image" to set the display height and/or width of all taxonomy images.</p> <h4>Permissions</h4> <p>For your users to be able to view the images you have uploaded, you will need to give them the necessary permissions. Only users with the "access taxonomy images" permission will see images. If you wish to give your users the ability to disable the images, also give them the "can disable taxonomy images" permission. A third permission, "administer taxonomy images", controls which users are allowed to configure taxonomy images.</p> <h4>Recursive image display</h4> <p>Taxonomy is a very powerful tool. 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 inheret the same image (unless they are manually configured to display an alternate image).</p> <h3>Displaying images</h3> <p>To actually display images, you will have to make a call to taxonomy_image_display(). [There are some included add-on modules that will do this for you.] When calling this function, you will need to pass in the taxonomy term for which an image should be displayed. For example, from your theme's "_node" function you might do the following: <pre> foreach (taxonomy_node_get_terms($node->nid) as $term) { if ($image = taxonomy_image_display($term->tid)) { $output .= \"$image\"; } </pre> <p>Taxonomy_image_display uses "theme('image',..." so you may override the display in your theme layer.</p> | |
Use external image | Использовать внешнее изображение |
Enter a path to an external image. Note this image will be copied to this site. | Введите путь к внешнему изображению. Учтите, что это изображение будет скопировано на этот сайт. |
or: | или: |