Home Blog Documentation Download Features Forum Users Contact

Adam   2009-01-30

Documentation » Loop

l_each

Loads subnodes of current node (page) into current node context using given contraints. This function should be used in loop context and it is root of all subnode listings.

while(l_each('post', 10, g_arg('page', 1))) {
   p('title', 'h1');
   p('content', 'div);
}
bool l_each( [string $types = false, int $limit = 0, int $page = 1, int $options = false, string $search = false, string $sort = false, string $last = false, string $since = false] )

Parameters

Constants

Returns

Last edited 2009-02-24 16:40:27

Register yourself or Login to add reply.