Ekskluzywne Strony Katalog stron   Dodaj link   Dodaj artykuł   Mapa  


How to Get Information on Current Category?

Information on current category is stored in the array $CNCAT[“page”][“cat”]. The values of the array elements are the following:

id

Category identifier. Also availabe using variable $CNCAT[“page”][“cid”]

id_full

Parent categories and current category identifiers, separated by the symbol «/», for example: «311/69/206» (311 – root, 206 – current category).

parent_id

Parent category identifier. It is equal to «-1» for the root category

child_id_list

The list of child categories identifiers (in one line separated by commas), for example: «15,23,53»

title

Category name

path

The part of the path to the current category, for example: «business» (without «/» in the beginning and in the end of line)

path_full

Full path to the current category, for example: «auto/business» (without «/» in the beginning and in the end of line)

url

Path of the current category, for example: «/cncat/auto/business/»

item_count

The number of links within the category

item_count_full

The number of links within the category, including the links within the child categories

is_link

Shows whether the category is the link or not

image_mime

MIME-code for the category image. Empty line if there is no image

meta_keywords

Keywords for META keywords tag

meta_descr

Description for META description tag

 
Adres WWW: How to Get Information on Current Category?
Kategorie:
Ocena moderatora: Nr
Ocena użytkowników: Nie
Przejścia do strony:2
Przejścia ze strony:0
Komentarze:

Brak komentarzy

Dodaj komentarz:

Nazwa:

E-mail:

Komentarz:

Twoja ocena:

Przepisz tekst z obrazka: