<!--[$__ATTRIBUTES__.description]--><!--[$__ATTRIBUTES__.description|pnvarprephtmldisplay]--><!--[* $Id: pages_user_rowread.htm 23954 2008-03-13 11:55:37Z rgasch $ *]-->
<!--[if $enablecategorization and $shorturls and $shorturlstype eq 0 and $addcategorytitletopermalink]-->
<!--[assign var="prop" value=$properties.0]-->
<a href="<!--[pnmodurl modname="Pages" func="display" pageid=$pageid cat=$__CATEGORIES__.$prop.path_relative]-->"><!--[$title|pnvarprephtmldisplay]--></a>
<!--[else]-->
<a href="<!--[pnmodurl modname="Pages" func="display" pageid=$pageid]-->"><!--[$title|pnvarprephtmldisplay]--></a>
<!--[/if]--><ul>
<!--[foreach item=page from=$pages]-->
<li><!--[$page]--></li>
<!--[/foreach]-->
</ul>Куда бы не вставлял - выводит одно описание ко всем заголовкам....
// Loop through each item and display it.
$pages = array();
foreach ($items as $item) {
if (SecurityUtil::checkPermission('Pages::', "$item[title]::$item[pageid]", ACCESS_OVERVIEW)) {
$pnRender->assign($item);
if (SecurityUtil::checkPermission('Pages::', "$item[title]::$item[pageid]", ACCESS_READ)) {
$pages[] = $pnRender->fetch('pages_user_rowread.htm', $item['pageid']);
} else {
$pages[] = $pnRender->fetch('pages_user_rowoverview.htm', $item['pageid']);
}
}
}
unset($items);ObjectUtil::expandObjectWithAttributes ($item, 'pages', 'pageid');// Loop through each item and display it.
$pages = array();
foreach ($items as $item) {
ObjectUtil::expandObjectWithAttributes ($item, 'pages', 'pageid');
if (SecurityUtil::checkPermission('Pages::', "$item[title]::$item[pageid]", ACCESS_OVERVIEW)) {
$pnRender->assign($item);
if (SecurityUtil::checkPermission('Pages::', "$item[title]::$item[pageid]", ACCESS_READ)) {
$pages[] = $pnRender->fetch('pages_user_rowread.htm', $item['pageid']);
} else {
$pages[] = $pnRender->fetch('pages_user_rowoverview.htm', $item['pageid']);
}
}
}
unset($items);