Giter VIP home page Giter VIP logo

tablepress / tablepress Goto Github PK

View Code? Open in Web Editor NEW
273.0 25.0 80.0 19.45 MB

TablePress is the most popular and highest-rated table plugin for WordPress. Create and embed attractive and interactive tables on your website!

Home Page: https://tablepress.org

License: GNU General Public License v2.0

JavaScript 19.33% CSS 3.60% PHP 76.01% SCSS 0.70% HTML 0.36%
wordpress-plugin tablepress wordpress wordpress-plugins shortcode block

tablepress's Introduction

TablePress is the most popular and highest rated WordPress table plugin.

  • Easily add, edit, and manage small and large data tables, without any coding!
  • Use any type of data, insert images, links, and even math formulas!
  • Add live sorting, pagination, searching, and more for your site’s visitors!
  • Import and export tables from/to Excel, CSV, HTML, and JSON files.
  • Embed tables into posts, pages, or other site areas using the block editor or Shortcodes.
  • All with no coding knowledge needed!

Even more great features for you and your site’s visitors and priority email support are available with a Premium license plan of TablePress. Go check them out!

Visit the plugin website at tablepress.org for more information, take a look at example tables, or check out TablePress on a free test site. For latest news, follow @TablePress on Twitter or subscribe to the TablePress Newsletter.

Screenshots and Demo

Screenshots of the TablePress interface are available at https://wordpress.org/plugins/tablepress/#screenshots.

A demo of the frontend functionality is available at https://tablepress.org/demo/.

Installation

The easiest way to install TablePress is via your WordPress Dashboard:

  1. Go to the “Plugins” screen, click “Add New”, and search for “TablePress” in the WordPress Plugin Directory.
  2. Click “Install Now” and after that’s complete, click “Activate”.
  3. Create and manage tables by going to the “TablePress” screen in the admin menu.
  4. To insert a table into a post or page, add a “TablePress table” block in the block editor and select the desired table.

Manual installation works just as for other WordPress plugins:

  1. Download and extract the ZIP file.
  2. Move the folder “tablepress” to the “wp-content/plugins/” directory of your WordPress installation, e.g. via FTP.
  3. Activate the plugin “TablePress” on the “Plugins” screen of your WordPress Dashboard.
  4. Create and manage tables by going to the “TablePress” screen in the admin menu.
  5. To insert a table into a post or page, add a “TablePress table” block in the block editor and select the desired table.

Frequently Asked Questions

Where can I find answers to Frequently Asked Questions?

Many questions, regarding different features or styling, have been answered on the FAQ page on the plugin website.

Support?

Premium Support

Users with a valid TablePress Premium license plan are eligible for Priority Email Support, directly from the plugin developer! Find out more!

Community Support for users of the Free version

For support questions, bug reports, or feature requests, please use the WordPress Support Forums. Please search through the forums first, and only create a new topic if you don’t find an existing answer. Thank you!

Requirements?

In short: WordPress 6.0 or higher, while the latest version of WordPress is always recommended. In addition, the server must be running PHP 7.2 or newer.

Languages and Localization?

TablePress uses the “Translate WordPress” platform. Please see the sidebar on the TablePress page in the WordPress Plugin Directory for available translations.

To make TablePress available in your language, go to the TablePress translations page, log in with a free wordpress.org account and start translating.

How to use TablePress

After installing the plugin, you can create and manage tables on the “TablePress” screen in the WordPress Dashboard.

To insert a table into a post or page, add a “TablePress table” block in the block editor and select the desired table.

Beginner-friendly step-by-step tutorials, guides, and how-tos show how to achieve common and popular tasks with TablePress. Examples for common styling changes via “Custom CSS” code can be found on the TablePress FAQ page. You may also add certain features (like sorting, pagination, filtering, alternating row colors, row highlighting, print name and/or description, ...) by enabling the corresponding checkboxes on a table’s “Edit” screen.

Even more great features for you and your site’s visitors and priority email support are available with a Premium license plan of TablePress. Go check them out!

Changelog

A changelog is available at https://tablepress.org/info/#changelog.

tablepress's People

Contributors

alexclassroom avatar boonebgorges avatar bryant1410 avatar kant avatar madvik avatar niilz avatar ostapkl avatar ramiy avatar stopfstedt avatar szepeviktor avatar tnerguitt avatar tobiasbg avatar trovster avatar tyrann0us avatar villeveikkoilen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tablepress's Issues

TablePress and Wordpress Search function

Hello,
I'm developing a website with a large use of tables made with TablePress. The plugin is amazing but I have a problem with the Wordpress search function. I saw that this feature has already been discussed here. I try to disable all plugins with no results.
At the moment the website is this temporary web address . Have you any suggestion to solve my problem?
Thanks a lot,
Francesco

Options are autoloaded by default

TablePress_WP_Option::_update_option calls update_option with two parameters. Leaving off the third parameter lets WordPress default the option to autoload. This isn't always ideal, especially if there's a bunch of other options being autoloaded and object caching is in use.

Would it make sense to pass that third parameter and only autoload really important TablePress options?

Max size upload csvfile

I have a .csv file that I want to upload to a table in tablepress. The size of the file is 762 kb.

If I do that, I get the following error:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in /public/sites/cyclingbase.black-dress.org/wp-content/plugins/tablepress/libraries/csv-parser.class.php on line 255

Is there a way I can change the max memory size?

Multiple tbody tags in one table

I'm currently working on a TablePress plugin to joining multiple rows into categories. The HTML table standard supports this behaviour with multiple tbody tags. Digging deeper into the code I doesn't see any possibility to group rows, e.g. using an array of arrays as the data field for rendering.

I would really like to extend the class function towards such functionality but aren't sure if this possibly could find a way in the master.

JS options are grayed out

Unable to uncheck JS options in settings.

Seems, there is a wrong "disabled" tag on fields.

If somebody will have same issue - it can be also removed via developer tools/firebug directly in page code ^^

CSV export, UTF-8

Hello,

Inside TablePress / controllers / controller-admin.php , I had to add byte order mark to the CSV-export, to make it open successfully in Excel, without opening via the Data->Text (doubleclick to open)

This means:
$export_data = "\xEF\xBB\xBF" . $exporter->export_table( $table, $export['format'], $export['csv_delimiter'] );

AND

$download_data = "\xEF\xBB\xBF" . $export_data;

(just for the CSV exports, one for zip and one for non zipped).

Hooks before import

Hey.
I already wrote in the wordpress support theme.
Just repeating this here.

The problem in using invalid markup in the HTML files which provided by another system and problem can’t be done without modification $temp_data in the class-import.php (line 158). Each time when I uploading the file with the invalid markup libxml will return an error (and this is okay) but this will be much more powerful if we will modify the $temp_data before starting working with it in the next step. Something like $temp_data = apply_filters('tablepress_html_import_temp_data', $temp_data); will be enough I think.

Add option for heading level when we choose to display tablename

Hi, I noticed that when I choose to display the tablename this will become a h2 level heading. I can not use this now because I need it to be a h3 level heading. My feature request is to add a extra option so we can define for each table which heading level it should be.

Check if there is an editor present before trying to add buttons to it

http://wp-types.com/forums/topic/error-messages-2/

ERROR:

Notice: Trying to get property of non-object in /www/web2738/www.caesarsbeauty.nl/http/wp-content/plugins/wp-views/inc/views-templates/wpv-template-plugin.class.php on line 1439

QUOTE:

Dear Willem,

As far as I can see, the tablepress plugin is trying to add some button to the rich text editor. The problem comes when you disable the "Editor" in one of your custom post types, tablepress is not considering this possibility and displays an error message. I would say its a harmless error message.

The solution is that Tablepress checks that there is an editor present before adding buttons to it, or that it only adds the buttons to pages and posts that will always have an editor.

Will you follow up with your plugin author?

Regards,
Caridad

Fix table header in WP-Admin?

Dear @TobiasBg,

Would it be possible to fix the table header in the WP-Admin?

Especially for long tables I always have to scroll back up to the top to remind myself which column stands for what.

Example of a header:
image

What do you think?

Thankfully,

~Robert

serverside table query supoort

Hi, I've implement the serverside tablepress based on tablepress and ColumnFilterWidgets plugins, currently just an working one, with some little bug.
so as GPL required, where shall I submit the patch ?

Plugin List Breaks On Activation

I installed this plugin on one of our client sites running WP3.8 and found that the Plugins list in WP was broken when TablePress was activated: only Akismet would display in the All list, though the other plugins were available via search. The error logs file gave this error:

[timestamp] [error] [client IP] PHP Catchable fatal error: Argument 1 passed to TablePress_Admin_Controller::add_plugin_row_meta() must be an array, null given in /path/to/site/wp-content/plugins/tablepress/controllers/controller-admin.php on line 288, referer: http://client.company.com/wp-admin/plugins.php?plugin_status=active

Our developer took a look and made a fix. His notes below:

"The 'array $links, $file' parameters had no values when the function was called. The $links array is actually populated in the function itself, so there would be no values to pass as a function parameter. I don't know what the purpose behind the if ( TABLEPRESS_BASENAME == $file ) { } conditional was, but apparently there was no value assigned to the $file parameter either because with that conditional in there the Plugin Meta Data links weren't being shown on the Plugins page, which says the TABLEPRESS_BASENAME did NOT equal $file, which would be NULL."

He removed the parameters in the function and removed the conditional statement—but maybe that's not a long-term fix.

Apply Classes to Selected Rows

When displaying a table of summary or comparison information, it would be useful to be able to apply additional classes to selected rows to add additional styling to call-out the row's contents.

Add: Visibility Status for whole Table

Hi Tobias,
I love your plugin for its simplicity in usage for non-coder. Thank you for your work!

As we used it for a time now, there is a question I want to ask about a new, hopefully simple feature.
Like the In/Visible status for selected rows it would be great to have a same option in the "dashbord" for a whole table.
For Example it could look like:
Edit | Shortcode | Copy | Export | Delete | Visible | Preview

and
Edit | Shortcode | Copy | Export | Delete | Invisible | Preview

That would he helpful for having a site with two tables whereas one is only relevant and you could just switch the visibility of them.

Problem while attach TablePress menu to a CPT menu.

I have this problem when the TablePress menu is attached to a CPT menu.
The "Destaques" menu, is the Post menu with labels changed.

Looks like the default Post menu ("Destaques", in this case) is activated too.
And the TablePress menu inside my CPT menu, isn't with "active style" (the blue link).

Maybe a conflict with parameters passed for edit.php file? (post_type and page)

screen shot 2014-10-22 at 2 06 07 am

Question: Cell attributes with thead cell value

Imagine a simple table with the following markup:

<table>
    <thead>
        <tr>
            <th>Heading 1</th>
            <th>Heading 2</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <th>A</th>
            <td>B</td>
        </tr>
        <tr>
            <th>C</th>
            <td>D</td>
        </tr>
    </tbody>
</table>

For the purposes of showing the table nicely on mobile, we'd like to add a data-label attribute to each body cell, with the value of the corresponding column header. The output should be like:

<table>
    <thead>
        <tr>
            <th>Heading 1</th>
            <th>Heading 2</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <th data-label="Heading 1">A</th>
            <td data-label="Heading 2">B</td>
        </tr>
        <tr>
            <th data-label="Heading 1">C</th>
            <td data-label="Heading 2">D</td>
        </tr>
    </tbody>
</table>

We think we'd need the tablepress_cell_tag_attributes filter, and can see a table ID is available, but not sure how to go about limiting the filter to the right cells, and grabbing the right column header for the data-label value.

Could you offer a suggestion for the callback please?

cc @craigsimps

TablePress Custom CSS not being applied

Hi there, I inputted custom CSS as described in a previously closed thread in order to align middle a table. When saved the custom CSS made no change to the table.

Please advise.

Thanks in advance.

David

PHP 7 Compatibility based on PHP Compatibility Checker

Hi everyone,

I investigated whether my wordpress installation is ready for PHP7. That's why I used the Plugin PHP Compatibility Checker which checks my plugins for PHP7-compatibility.

It says that TablePress is not compatible due to the following 2 errors and 2 warnings:

FILE: /www/htdocs/w00d0b91/blog/wordpress/wp-content/plugins/tablepress/views/view-about.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
 185 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and deprecated since PHP 5.6 and removed since PHP 7.0 - use mysqli instead.
 186 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and deprecated since PHP 5.6 and removed since PHP 7.0 - use mysqli instead.
-------------------------------------------------------------------------------------------------------------------------------------------


FILE: /www/htdocs/w00d0b91/blog/wordpress/wp-content/plugins/tablepress/libraries/simplexlsx.class.php
------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------
 602 | WARNING | The use of function dl is discouraged from PHP version 5.3
 604 | WARNING | The use of function dl is discouraged from PHP version 5.3
------------------------------------------------------------------------------------------------------

I'm not a PHP expert, but the errors just revolves around deprecated functionality, which still works.

Within my local php 7 test setup, the TablePress just works fine. It seems that this is not a critical problem.

Will this be fixed? Is this a blocker for my php7 migration? I suppose it's not.

I'm using TablePress Version 1.7.

Combine cells bug

I'm trying to combine all the cells in a row with a #colspan#: http://cloud.jen.gs/WNQo. There are 4 columns in my table, but it's only adding 3 cells to the row when there either needs to be four or needs to be one with a colspan=4 attribute: http://cloud.jen.gs/WO0Y. So now my table looks like this: http://cloud.jen.gs/WNH4.

If I add a #colspan# tag to each cell in my table (ie, http://cloud.jen.gs/WNgC), then it only adds one cell to the row and still no colspan element: http://cloud.jen.gs/WNQv. So then my table looks like this: http://cloud.jen.gs/WOE8.

Any thoughts?

Incompatibility with qTranslate-X

The settings from any table editing form (e.g. Table options and DataTables stuff) seems to not be applied to the table rendered in posts when qTranslate-X plugin is activated as well. Not sure if the problem is the translate plugin though.

DataTables not available in preview

In preview DataTables features are not available.
It makes sense to have this available in preview, too,
because one can review and try out the changes by DataTables options.

colgroups filter/support

There is a tablepress_print_colgroup_tag filter (for s) but apparently no GUI feature yet for controlling it.

WordPress Importer Support

Hi @TobiasBg!

I'm running into this issue with TablePress and have been poking around to see if there's a good approach to regenerating the table ID associations.

The table data is inserted fine in posts and postmeta during import. Because of the missing tablepress_tables option, it does not show in the standard TablePress display. It does show if I go directly to edit.php?post_type=tablepress_table.

I could see hooking on wp_import_insert_post to regenerate the data. I could also see having a "regenerate" or "flush" option that triggers and entire rewrite of tablepress_tables. This could be useful in a case where that option is accidentally deleted for some reason as well.

Before I dig further—is this something that you could see supporting in the future? And have you given any thought to approach if so?

Thanks!

Weird menu bug upon activation of the plugin

I've added images to show this more succinctly!

Upon activation of TablePress, the plugin overwrites the menu item after Comments, rather than just adding to the menu order.

Before (showing the Google Maps plugin's menu item)
b4activation

And after (replacing that menu item)
afteractivation

I tried with a few other plugins, including my own that just slot into the menu and this one always wants to be at that specific position regardless of whatever is already there.

Add Link in Advanced Field Editor

Currently when you click add link in the advanced field editor you cannot type in the link field or the Link Text field. It only works if you search for a page or click "or link to existing content"
Tablepress Version 1.4

Custom Post Types

Is there a way to cause TablePress to kick into action for custom post types when the post type has a post content editor? For example we have a CPT that has 2 content editors, one for the post content and one for the excerpt and both use WP Editor ( TinyMCE ). We'd like to have the TablePress button appear in those editors, but it doesn't.

Aligning text vertically on all tables

Hey, first off.. great plugin!

I will definitely be using it more often to style tablesheets in the future.

There is really only one thing I'm getting hung up on. Please see this screenshot for reference:
image
Also: http://www.emikamito.com/acting-resume-2/

I currently have three tables on the page, and have the colors set how I like them; however, I'm trying to make it so all of the text aligns up vertically in each table. I'm thinking I might need to define width properties for the table cells, or something similar?

Here is a screenshot of what I want:
screenshot02

Thank you heaps in advance, it's really not that big of an issue but it would be the icing on the cake.

TablePress content doesn't show up in search results

I'm working on a site that uses TablePress, and it seems that content inside of a table isn't showing up in search results. For example, on this page there's a table with a cell that says "USCO-003". Searching for that via the search bar at the top of the page does return a few results, but not the actual correct result (which would be the "Overhead Cutouts" page.

I'm guessing this is because it's using a shortcode to display the table. Is there a way to fix this?

edit

your plugin is awesome!!

nut i have missing one option, to deal with large table ie 200+ Records in editing mode, takes ages to display the form, best solution for me is to add "add button" to the view page to add single entry and do option column where "edit and remove button" will be placed. also good idea is to paginate edit form page. Thanks

Additional Options in Edit Screen

The idea was to add a metabox with the advanced settings in the edit screen.

add_meta_box(
    'vr_tablepress_metabox', // $id
    esc_html__('Additional Options'), // $title
    'vr_table_options',
    'tablepress_edit'
);

functions vr_table_options( array $data)
    {
        $options = $data['table']['options'];
?>
        <table class="tablepress-postbox-table fixed">
            <tbody>
                <tr>
                    <th class="column-1" scope="row"><?php esc_html_e('First Column is Header'); ?>:</th>
                    <td class="column-2"><label for="option-first-column-th"><input type="checkbox" id="option-first-column-th" name="table[options][first_column_th]" value="true"<?php checked($options['table_head']); ?> /> <?php esc_html_e('The first cell of the table row is header.'); ?></label></td>
                </tr>
            </tbody>
        </table>
<?php
    }

But this doesn't work when Screen 'tablepress_edit'. Any way to add additional metabox to Edit Screen?

Considerations with Quick Cache plugin

I noticed that using tables in a wordpress page and having Quick Cache plugin activated it gets in conflict when I make a change in a table (visitors see old table info).

Is the cache info being invalidated when a table changes? Quick Cache provides a sort of mini-API with operations like this one:

$_SERVER['QUICK_CACHE_ALLOWED'] = FALSE;

Authenticated Stored XSS

Table fields data is not escaped when previewing tables. Authenticated users can trigger a Cross Site Scripting vulnerability.
However, the attack vector has a very low risk.

image

Injecting jQuery

The plugin has the ability to toggle css on/off

However, I have un-enqueued Jquery on my site (and have it loaded in a minified grunt-generated file). TablePress, however, reinjects jQuery v1.12.4 immediately before jquery.datatables.min.js?ver=1.8

This causes a conflict on my site and blocks Stripe from loading.

Can jQuery be toggled on/off or an option to unhook from the functions.php be added?

Can't get tables to display at 100% width

They first load 100% width, but then revert to squashed after the page is fully loaded. Any ideas? Thanks much.

http://www.gizbeat.com/10100/19-available-now-and-upcoming-mediatek-marshmallow-android-phones/

· Website: http://www.gizbeat.com
· TablePress: 1.7
· TablePress (DB): 32
· TablePress table scheme: 3
· Plugin installed: 2013/03/11 18:53:22
· WordPress: 4.5.2
· Multisite: no
· PHP: 5.4.41
· mysqli Extension: false
· mySQL (Server): 5.5.45-cll-lve
· mySQL (Client): 5.5.45
· ZIP support: yes
· UTF-8 conversion: yes
· WP Memory Limit: 40M
· Server Memory Limit: 256M
· Magic Quotes: off
· WP_DEBUG: false
· WP_POST_REVISIONS: true

Output table as raw data

If there was an option to bring the tables to the front end as raw data (json, array, etc). This would enable many new features. The admin area is exceptional for managing data inside the wordpress area vs. some other interface to the database.

This would let me use tablepress as a version controlled micro database for small page specific components. (Example: A map with a list of points)

I'm able to get this to work by modifying template files but it would be so much more useful to be able to use a shortcode.
$table = TablePress::$controller->model_table->load( $the_table_id );
echo "<script> var table_data = " .json_encode( $table['data']). "</script>";

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.