Okay
  Public Ticket #874553
wpdatatables display length
Closed

Comments

  •  2
    James started the conversation

    I would like to set display length for my table to 1 only. Please respond urgently. Thank you very much. 


    Can u help me to fix this? I dont know any programming. 

  • [deleted] replied

    Hi James,
    Thank you for your purchase.

    I don't understand your question. Can you explain me in more details what are you trying to achieve?

  •  2
    James replied

    Please refer to the attachment screenshot. Essentially, I would like my table to display only 1 entry instead of the default option 10, 25 or 50. 

    Please let me know if still don't understand. Btw, i love your plungin. One of the best. 

  • [deleted] replied

    Hi James,

    You can take a look at this tutorial how you can add option for "Show X entries" using filters and actions but this will add new option on front-end - Video.

    But if you want to add 1 entrie on settings page of the table so by the default table will show just 1 entrie, something like that will require customization of the plugin.

  •  2
    James replied

    Hi Milos, 

    Thank you and i have tried the following code below. However, I need the table to display only 1 entry by default. Currently even with my code below, the default value is 10 entries automatically, which is not something i want. Can you please advise on the coding. 

    If i need to customise the plungin, what should I do?

    add_filter('wpdatatables_filter_table_description', 'changeFieldData', 1, 2);
    function changeFieldData( $object, $table_id) {
    $object->dataTableParams->aLengthMenu = array(
    array(
    1,
    10,
    25,
    100,
    -1
    ),
    array(
    1,
    10,
    25,
    100,
    'All'
    )
    );
    return $object;
    }


    Thank you.

  • [deleted] replied

    Hi James,

    Unfortunately something like that is not possible with built-in functionalities. If you are skillful with PHP and jQuery it is not hard to accomplish it. The file from you can start is located ../wp-content/plugins/wpdatatables/templates/edit_table.inc.php around line 390. If you need our assistance we can offer you our paid customization service.

  •  2
    James replied

    Yes i need such service. How much should i pay for it?

  • [deleted] replied

    Hi James,

    Our customization service price is 50$/hour. Customization like this requires 1 hours of work. If you are interested I can send you invoice at your email address and we will implement this feature for you.

  •  2
    James replied

    Yes, kindly send me the invoice and advise on the payment method please. 

  •   [deleted] replied privately
  •   James replied privately
  •  2
    James replied

    Hi I just did the payment. PLEASE CHECK.

    One more addition request. Can you please help me to adjust the filter input text bar to align to left - now I'm see a margin-left="10px". I want the margin-left to be zero. 

    Please advise when it can be done. SInce I have paid i expect the work to be delivered by 1st Sep 2016. 

    Thank you. 



  • [deleted] replied

    Hi James Sherman,

    We have received payment. We will notify you when we implement customization. It will be tomorrow.

    Yes, I will help you with CSS. Just please send me a screenshot of filter that you want to change. 

  •   James replied privately
  •   [deleted] replied privately
  •  2
    James replied

    Please try again. Reset the security. 

    Thanks. I need this to be done soonest possible please. 

  • [deleted] replied

    Hi James Sherman,

    Your customization is implemented. Please note that if you are updating plugin customization will be overwritten.

    You can add this CSS to wpDataTables Custom CSS field on wpDataTables settings page to remove left margin from filter input field:

    div.wpDataTableFilterSection input {
        margin-left: 0 !important;
    }
    


  •   James replied privately
  • [deleted] replied

    Hi James Sherman,

    The 'Duplicate' functionality only duplicates the metadata for the table, i.e. display settings, not duplicating the actual data (MySQL table underneath). We added a workaround for that in version 1.7, there you can choose whether you want to duplicate the data as well or not, but version 1.7 is currently in Beta till early/mid September:  

    You can take a look explanation for that in this video - Link

    If you wish you can get a Beta with the new features already now, but if you install it your customization will be overwritten. 

    I can write you what we have changed in code for customization and if you wish to update to higher version you can change few lines of code and you will also have option to select 1 entrie.

  •   James replied privately
  • [deleted] replied

    Hi James Sherman,

    I will send you Beta version at your email address. If it's not in inbox please check your Spam or Junk folder. I will write you instructions for customization in another ticket later. It's better to implement by your own so you would know how to do it in later updates, but I will assist you if you can not work it out.

  •   James replied privately
  •   [deleted] replied privately
  •   James replied privately
  •   [deleted] replied privately
  •   James replied privately
  • [deleted] replied

    Hi James Sherman,
    Thank you for your kind words.

    You are welcome. If you like our plugin and support please rate our plugin at CodeCanyon on this link. It means a lot to us. Thanks.

  •  2
    Tobi replied

    Hi, can you post the solution please? I have the same problem!

  • [deleted] replied

    Hi netzlichter,

    Unfortunately no, this was customization that we were working for James and it wouldn't be fair if we give you this code for free and he paid for it. If you are interested we can also offer you our paid customization service.