RE: [Typo3-UG Russia] Древовидная структура

Valery Romanchev it at webmed.ru
Tue Jul 5 11:27:33 CEST 2005



---
Best regards,
Valery Romanchev
freelance TYPO3 web-developer
Email: romanchev at list.ru
Phone: +7 (095) 370-84-08 
Moscow, Russia  

> -----Original Message-----
> From: typo3-russia-bounces at lists.netfielders.de 
> [mailto:typo3-russia-bounces at lists.netfielders.de] On Behalf 
> Of Igor Ageyev
> Sent: Tuesday, July 05, 2005 1:00 PM
> To: TYPO3 Usergroup Russia
> Subject: [Typo3-UG Russia] Древовидная структура
> 
> 
> Кто нибудь в курсе, какой алгоритм создания древовидной 
> структуры БД используется в TYPO3? Adjacency List,  или что-то другое?
> 



В таблице pages есть uid и pid
Стало быть это не Nested Sets

http://typo3.org/documentation/document-library/doc_core_inside/Relational_D
atabase/
The "pages" table
One table which has a special status is the "pages" table. This table is the
backbone of TYPO3 as it provides the hierarchical page structure into which
all other TYPO3 managed records are positioned. 

You can understand the "pages" table as folders on a hard disc and all other
records (configured in $TCA) as files which can belong to one of these
folders. As a unique identification of any record, "pages" record or
otherwise, the "uid" field contains an integer value. And for any record the
"pid" field is like the "path" in the file system telling which "page" the
record belongs to.

Thus records in the "pages" table has a "pid" value which points to their
"parent page" - the page record they belong to.

If a page (or record from another table) is found in the "Root" they have
the "pid" 0 (zero).

Only admin-users can access records in the root. Also records from tables
can normally only be created on a real page or in the root (unless
configured otherwise).


Когда освоишь расскажи как это называется
 :-)




---
Best regards,
Valery Romanchev
freelance TYPO3 web-developer
Email: romanchev at list.ru
Phone: +7 (095) 370-84-08 
Moscow, Russia




More information about the TYPO3-russia mailing list