Topic: Single template list now in CVS
Converted
avatar
12
Posts: 0

Posted:
24.Jun 2004 - 21:38

You can now layout your frontpage a lot easier with the list-single template. Drop the header/footer stuff and iterate through the publication list yourself. See manual for further instructions.

(based on Tony's intial work).
Converted
avatar
12
Posts: 0

Posted:
24.Oct 2004 - 15:14

Great functionality, gives huge flexibility, but I miss such thing for BLOCKS. I would like to have a block with 5 articles - the first one with some more info (like image and teaser), and the rest only as links to articles. Currently it is impossible in block, only in module.
Converted
avatar
12
Posts: 0

Posted:
24.Oct 2004 - 16:53

I've got another idea to solve this issue. Maybe it is worth to add additional field in "core" variable, which could contain the number showing possition in a list. It would be easy to implement and to use...
For example:
pagesetter\pnblocks\list.php modiffication (line 103, foreach loop, added $orderNumber variable):
====
$orderNumber=0;
foreach ($pubList as $pub)
{
$pubFormatted = pnModAPIFunc( 'pagesetter',
'user',
'getPubFormatted',
array('tid' => $tid,
'pid' => $pub['pid'],
'format' => $template,
'coreExtra' => array('format' => $template,
'orderNumber' => $orderNumber),
'updateHitCount' => false ) );

$html .= $pubFormatted;
$orderNumber+=1;
}
=====
and using it in template (News-block-list.html):
======
.

======
which shwos:
0. first article
1. second artice
etc...