Results 1 to 2 of 2

Thread: Add [show all] to lists

  1. #1
    DanielWebb is offline Junior Member
    Join Date
    Mar 2007
    Posts
    2

    Default Add [show all] to lists

    I've added a [show all] link to all of the lists displayed in sugar (Contacts, Accounts, Targets etc).

    Add to include/ListView/ListViewData.php around 93 (Function getLimit())
    Code:
    /*DWMOD Start – allow variable list lengths */
    if(isset($_GET[$this->limitName]) && preg_replace("/\D/","",$_GET[$this->limitName])!="") 
    	return($_GET[$this->limitName]);
    /*DWMOD End*/

    Add to include/ListView/ListViewGeneric.tpl around 114 at the bottom of the paging cell <td align='right' nowrap='nowrap' id='listViewPaginationButtons' class='listViewPaginationTdS1' width='90%'>

    Code:
    <!-- DWMOD - add show all to list views -->
    {if $pageData.offsets.total != $pageData.offsets.lastOffsetOnPage}
    	<a href="{$pageData.urls.baseURL}list_max_entries_per_page=10000">[show all]</a>
    {else}
    	[show all]
    {/if}
    <!-- DWMOD End -->
    works in 4.5.1f and 5beta
    I'm very happy to be corrected on how to do it properly...
    Hope this helps someone.

    Regards
    Daniel Webb
    [my first post, thanks for SugarCRM]

  2. #2
    egork is offline Sugar Community Member
    Join Date
    Nov 2006
    Location
    Duesseldorf, Germany
    Posts
    50

    Default Re: Add [show all] to lists

    Hi this is actually a nice feature to use for a Mass Update, in case there is a rather large list.
    4.5.1h ENT Trial

    Vodafone 29Bln Revenue, 45% Ownership in Verizon Wireless

    There's a reason we use computers, and performing the same mindless action over and over again isn't one of them.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Automatically add leads to target lists?
    By Dale Thomas in forum Help
    Replies: 3
    Last Post: 2007-07-18, 05:05 PM
  2. Add to Target List/ Suppression Lists
    By Jamez in forum Marketing/Campaign Management
    Replies: 0
    Last Post: 2007-03-21, 03:46 PM
  3. DropDown Lists - cannot add
    By dsharma in forum Help
    Replies: 1
    Last Post: 2006-04-16, 02:27 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •