Log in | Register | Lost password

  • Start :: 
  • Mediashare :: 
  • Mediashare Help :: 
  • Issue with relations - a maximum of 1000 titles display in selector and documents but I need more
Bottom
Issue with relations - a maximum of 1000 titles display in selector and documents but I need more
  • Posted: 04.03.2008, 21:42
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I have various publications types that relate to the 1200 titles of a main publication type. Out of these 1200 titles, only 1000 (exactly 1000!) show in the relation selector of the related publications. As the titles are alphabetically ordered, the list stops somewhere with "S" and there is no chance to choose a related title beginning with "T" or above. The same holds true for the display of existing relations in the publication editor, only related titles from "A" to "R" and a few with "S" are shown. When editing such a document, the existing relation is lost because it is no more available in the relation selector.

    So it seems that no more than 1000 items are allowed for the relation selector. Does anybody have a clue how to change that? Thanks in advance!

    10 minutes after posting this: I have found it myself!! The value is defined in "pnrelationsapi.php" at line 114. I have set it to 10000 and now it works fine for me. I think 1000 is to low and should be set higher in future releases. This is the original code:

    Code

    $pubList = pnModAPIFunc('pagesetter', 'user', 'getPubList', array ('tid' => $targetTid, 'noOfItems' => 1000, 'filterSet' => (!empty($args['filter']) ? explode('&',$filter) : NULL )));




    edited by: thilo, Mar 04, 2008 - 11:01 PM

Template courtesy of Designs By Darren.