Linux 软件免费装
Banner图

BaraTables

开发者 nathannoom
更新时间 2026年11月1日 23:44
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

shortcode tables csv charts datatables

下载

2.0.0 1.3.0 1.2.3 1.1.0 1.1.1 1.2.0 1.2.1 1.0.1 1.2.2 1.2.5 1.2.4 1.3.1 1.3.2 1.4.0 1.0.0 2.0.1

详情介绍:

BaraTables builds interactive tables and charts from manual rows, CSV uploads, snapshots, WordPress content, or an external database, published by shortcode or block. Import a JSON, XML, HTML, CSV, TXT, XLSX, ODS, or ZIP export from another plugin. Tables can include search, sorting, pagination, filters, export buttons, responsive stacking, and column visibility. Charts draw from any table. Features:

安装:

  1. Upload the baratables folder to /wp-content/plugins/.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Create a table under Tables, then embed it with [bara_table id="your-table-slug"].

屏幕截图:

  • A frontend table with search, filters, exports, and sorting.
  • The Design tab: presets, colors, typography, and Copy CSS.
  • Chart builder and chart-type gallery.
  • Responsive table on a phone.

升级注意事项:

2.0.1 Adds TLS for external database sources, and fixes tables with a hidden column, Additional CSS that uses a "<", styles reaching a sibling table, and a preview that could show a color a save would drop. 2.0.0 Adds the Design tab: no-code styling with live preview, Copy CSS handoff, and a token API for themes. 1.4.0 Adds workbook imports, remote snapshots, fixed headers and columns, numeric rules and footers, and bounded database paging. Exports now neutralize spreadsheet formulas. 1.3.2 Makes table preview refreshes reliable and clarifies which options have additional settings. 1.3.1 Fixes search after column reordering, remembered searches, and meta columns dropped on save. Developers: PHP methods deprecated in 1.2.5 are removed. 1.3.0 New table and chart blocks, responsive stacking on small screens, PDF export, theme-matched colors with a custom accent, and faster table pages without jQuery. Fixes day-first dates, decimal-comma chart values, and silent external database edits. 1.2.5 Broader and more accurate table imports, faster tables and chart-only pages, reliable saves, clear load errors, PHP 7.4 compatibility, and secure import validation. 1.2.4 Adds radar, heatmap, and treemap charts. 1.2.3 Security fixes: password-protected post content and post passwords could be displayed in a table. Also fixes date sorting, sticky posts, and Media tables. 1.2.2 Includes a security fix for the table editor. Fixes category and tag filtering, Advanced Custom Fields columns, and settings lost when editing an external database connection. If you use row-level access control, open and re-save those tables: some show no rows until you do. 1.2.1 Adds Excel export, five new chart types, saved table state, and scrolling and row-limit controls. 1.1.1 "Format as date" works on every data source, front-end controls follow the site language, and shortcodes without an id no longer error on older WordPress. Includes a security fix for the table editor. 1.1.0 Import tables from other plugins or spreadsheets, rename Table and Chart IDs, reorder manual rows, and use translation-ready headers. Includes fixes and security hardening. 1.0.1 Maintenance release with improved date formatting controls and safer frontend output. 1.0.0 Initial release.

常见问题:

What data sources are supported?

CSV files, manual data, WordPress content, external MySQL/MariaDB databases, and snapshots from public CSV, JSON, or Google Sheets URLs. Remote snapshots are manual and administrator-only: save the public HTTPS URL and format, click Fetch snapshot, and published tables use the stored snapshot without contacting the source. CSV endpoints must return text/csv or application/csv; text/plain is rejected. JSON endpoints may also be served as text/plain. Authentication, private Sheets, scheduled refresh, and schema changes are not supported; re-create the table when remote columns change.

Which plugin exports can I import?

Use a TablePress single-table JSON export; Ninja Tables classic and drag-and-drop JSON also work (export an externally connected Ninja table as CSV). WP Table Builder, Visualizer, Supsystic, League Table, wpDataTables, TableKit, and Tablesome exports import too, as do HTML tables; a ZIP imports the first supported table. Imports rebuild table data and compatible display settings, not styling, formulas, macros, shortcodes, charts, or connections. XLSX and ODS formulas use cached results and are never executed; save legacy XLS or encrypted workbooks in a current format first. Uploads are capped at 5 MB; a ZIP holds 50 entries of 5 MB each.

How many rows can a table load?

Tables load 1,000 rows by default; the Options tab sets a limit from 1 to 10,000 on every source. External MySQL/MariaDB tables can instead page large tables on demand: at most 100 rows per request, paged, sorted, and searched by the database within a 100,000-result limit. It requires selected columns, pagination, and a non-null single-column primary or unique key; access rules, transforms, filters, footers, exports, print, and charts load as usual. Database search follows the source collation. Encrypt the connection with TLS for any host outside your own machine. TLS needs the path of the CA certificate that signed it: PHP's MySQL driver cannot use the system trust store.

Can I link to a filtered view of a table?

Yes. Filtering or searching updates the page address, so you can share the view, or build it with btbl_filter[column-slug], btbl_search, and btbl_search_cols.

How do I add a chart?

Create a table first, then go to Charts and create a chart linked to it, embedded with [bara_chart id="your-chart-slug"].

Can I customize the table appearance?

Yes. The Design tab (charts get one too) styles tables without code: presets, colors, typography, spacing, and a per-chart palette, each live in the preview as you type. It also takes per-table Additional CSS. Styles print as CSS custom properties, so your theme keeps what you leave blank.

How do numeric rules and footer calculations work?

Choose Number in a column's settings: plain decimals such as -12.5 join numeric sorting, conditional styles, and footers, while currency symbols, percentages, grouped numbers, words, blanks, and out-of-range values stay visible but are excluded. Footers calculate every loaded row matching the current search and filters, not only the current page; rows beyond the row limit and exports are excluded.

Can I style BaraTables with custom CSS?

Minimal frontend styles keep your theme in control; adjust colors, spacing, and typography with your theme, the Site Editor, or custom CSS. The Design tab writes its choices as --btbl-* custom properties on .btbl-table-wrapper -- a stable API for themes: set them globally to re-skin every table, or copy the block with Copy CSS and manage it in your theme via the "Theme CSS" output mode. Tokens cover header, stripe, hover, border, footer, conditional, and chart colors, type, padding, and radius.

Where can I see examples?

See https://ktisisweb.com/baratables/ for screenshots and styling guidance, or the WordPress.org demo.

更新日志:

2.0.1 New: Fixes: Security: 2.0.0 New: 1.4.0 New: Fixes: Security: 1.3.2 1.3.1 Fixes: Developer: 1.3.0 New: Improvements: Fixes: 1.2.5 New: Improvements: Fixes: Security: 1.2.4 1.2.3 Improvements: Security: Fixes: 1.2.2 New: Fixes: Improvements: Security: 1.2.1 1.1.1 Fixes: Security: 1.1.0 New: Improvements: Fixes: Security: 1.0.1 1.0.0