[Documentation de SPIP] PUBLIE : 14. The HIERARCHIE (Hierarchy) Loop

Article publié
--------------

L'article "14. The HIERARCHIE (Hierarchy) Loop" a été validé par George
Kandalaft.

** 14. The HIERARCHIE (Hierarchy) Loop **
par Paolo le jeudi 16 octobre 2003

The HIERARCHIE loop is based on a different principle to that of other
loops. Rather than simply pulling a list out of the database, it gives
recursive results.

The loop returns a list of the SECTIONS which lead from the root of the
site to the current section or article.

Selection criteria

One of the following criteria is used to indicate how the elements are to
be selected:

id_rubrique returns the list of sections from the root up to the section
corresponding to the identifier.

id_article returns the list of sections from the (...)

-> http://www.spip.net/spip_redirect.php3?id_article=2099