You are here

Taxonomy term page token

The Taxonomy term page token module helps you use the taxonomy_term_page function in your Web pages through tokens.

Test pages

The list of attached pages shows a lot of test pages. Each test page shows the result of one token. The title for the test page is the title returned from the term, not the title of the page as seen from this page.

Syntax

The basic token is [[taxonomy_term_page]] and will provide a help page as shown in the test help page listed below.

The next example shows an optional space. The space is required if there is a value after the space. The space can be more than one space and can be a tab or a newline character. Note that Drupal filters might replace newlines with something else and that will stop the token from working.
[[taxonomy_term_page ]]

You can also enter the token as an example in text by using double brackets as shown in the following example.
[[[taxonomy_term_page ]]]

You can add a term id, as shown in the following line, and the result is shown below in test 10.
[[taxonomy_term_page 10]]

The next example shows the token used with the term name Linux and the result is shown in the test Linux page. The term name is case independent.
[[taxonomy_term_page Linux]]

Vocabulary

If a term is in more than one vocabulary, the token will return the first term returned from the database. You can add a vocabulary name or id using the pipe character, |. The vocabulary name is case independent. The next example shows the token used with the term name Linux and the vocabulary technology. The result is shown in the test Linux Technology page.
[[taxonomy_term_page Linux|technology]]

License

The code is copyright by PeterMoulding.com. It is provided free for use under Drupal 6 using the GPL2 provided in Drupal 6. Unlabled versions and BSD style licenses are available from PeterMoulding.com. use the contact form for any special requirements.

drupal.org

Why is the module listed here instead of at Drupal.org? Drupal.org requires the use of old Unix syntax from the 1970s plus the use of naming conventions that are not semantically correct. The messy approach is common throughout open source development because it is the oldest available format used in Unix and universities tend to teach the oldest information. If someone wants to retrograde the code for drupal.org, go to it. Any requests for help submitted to here must use the version from here, not anything else.

Technology: