• Resolved techgodown

    (@techgodown)


    Hey Tobias,
    Once again i need your help, as i am using a single plugin for different kinds of table on my website, the custom CSS is becoming lengthy and complex day by day, i am afraid that it will create constraints for future.
    Is there any other way like defining a class for group of tables and just by adding class name or id in table edit option for each table. so, that the overhead of large CSS file loading can be prevented.

    https://www.ads-software.com/extend/plugins/wp-table-reloaded/

Viewing 2 replies - 16 through 17 (of 17 total)
  • Hi,

    Many Thanks for your quick reply…
    Actually I made a plugin where I am putting some values in the database and fetching those in the front end .that you can see here :-
    https://beta-projects.com/mike/property/properties/

    Here the values in the table are coming from database table which is created at the time when plugin gets activated.

    now I want to put the search functionality and when I tried to make may own I stuck at one place.

    Then I had 2 options , either to do R&D over my code or to search for some plugin.I did both and found your plugin and saw your plugin is quite good(appreciable work).

    now I want to relate your plugin with my database table to filter the records and also to do the sorting.

    I just want to know , is this possible with your plugin.
    As far as I checked that we can make or export/import tables but if I want to correlate my table ..so how to do that…

    I suppose I am clear…
    if not can you please tell me that how should I call the function.

    Please help me if you have time ….

    I have made a function :-
    function displayproperty($table_name, $mode, $sort, $ascdesc, $sbox=”)
    {
    ….
    }

    through which the table(https://beta-projects.com/mike/property/properties/) gets displayed. Now I want to put a search box above the table through which I can search the properties as per the description /name .

    now when I will click the search button , I want to call the above function which is php function .
    there I got stuck..
    Anyways if you have time ..then please help me….

    Thanks in advance ??

    TRIPTI

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for the explanation.

    Unfortunately, something like that is not possible with my plugin. It can only show tables that were added by manually typing in the content or by importing a file. Using another database table as the source is not possible.

    Now, as you already seem to be able to create a HTML with your code, you could simply load the DataTables JavaScript library (from https://www.datatables.net) manually (i.e. without WP-Table Reloaded). That is the same library that WP-Table Reloaded uses for the search/filter.
    And you don’t need a PHP function for that, as it works in JavaScript. You only need to load a JavaScript file and make a call to the DataTables loading function (see the examples on the website).

    Regards,
    Tobias

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Very Long Custom CSS Code’ is closed to new replies.