Log in | Register | Lost password

Bottom
Single template list now in CVS
  • Posted: 24.06.2004, 21:38
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    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).
  • Posted: 24.10.2004, 15:14
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    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.
  • Posted: 24.10.2004, 16:53
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    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...

Template courtesy of Designs By Darren.