Log in | Register | Lost password

Bottom
list publications by category in menu
  • Posted: 01.10.2005, 01:29
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    It seems like I've seen this somewhere before, but I can't seem to find it now.

    I want to display a list of publications grouped by category, sort of like this:

    Category 1
    - Publication 1
    - Publication 9
    Category 2
    - Publication 3
    - Publication 6
    Category 3
    - Publication 5
    - Publication 7

    and so on. So, it's sort of a combination of the category list block (which doesn't display publications) and the regular pub list block (which doesn't show categories)

    I tried modifying the pub list template to include the category info, which works, and only showing the category when it's different from the last category like you would in normal php, but it doesn't work as it appears that the template can't remember the values of variables assigned in the last row. As such:

    Code

    <\!--[if ($level.id == $lastlevelid)||($lastlevelid == 0)]-->

    <\ !--[$level.title]--><!--[$lastlevelid]-->

    <\ !--[/if]-->

    <\ !--[assign var="lastlevelid" value=$level.id]-->

    <\ li><!--[$core.title]--></li>

    (I added the \ here to get the code to show up)

    The above code shows the "level" value for every publication, instead of only when it changes.

    Other ideas?



    edited by: bronto, Oct 01, 2005 - 02:31 AM
  • Posted: 01.10.2005, 07:37
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Might try this plugin:
    http://www.pagesetter.org/index.php?module=pagesetter&func=viewpub&tid=4&pid=58

    Take Care,
    Michael Daly
  • Posted: 03.10.2005, 23:35
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    that worked great, thanks !

Template courtesy of Designs By Darren.