Linux 软件免费装
Banner图

BaraTables

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

标签

shortcode tables csv charts datatables

下载

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

详情介绍:

BaraTables builds interactive tables and charts from manual rows, CSV uploads, snapshots, WordPress content or an external database. Import a JSON, XML, HTML, CSV, TXT, XLSX, ODS or ZIP export from another plugin. 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.1.2 Fixes an external database that drops mid-request, Additional CSS with a quoted attribute selector, and the Design tab's preview. 2.1.1 Fixes right-to-left details; export libraries load on first click; the table menus work with the keyboard; chart colors are readable. Developers: sixteen published PHP methods and constants are deprecated. 2.1.0 Adds a site-wide default design, brings the chart Design tab to parity with the table one, and fixes the chart colors that did not reach every chart type. 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, though JSON endpoints may use it. Authentication, private Sheets, scheduled refresh and schema changes are unsupported; re-create the table when the 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 its 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 and 20 MB in total, an XLSX or ODS archive 200.

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. A table that stores its own rows -- typed, pasted or imported -- holds at most 1,000. External MySQL/MariaDB tables can page large tables on demand instead: 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, and none of: access rules, value transforms, column filters, formatted dates, Number columns, footer totals, or the export, copy and print buttons. A table using any of them keeps standard loading, and the editor names the reason. 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, as 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 series palette, each live in the preview as you type. It also takes per-table Additional CSS, scoped to that table, except @import and @font-face, which load for the whole page. What you leave blank falls through to the site default, then to your theme.

Can I set one design for the whole site?

Yes. BaraTables > Design sets the design every table and chart starts from. A table or chart that sets its own value keeps it, value by value; one that switches the site design off follows your theme. Copy CSS hands the whole design back as CSS.

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 excluded. Footers calculate every loaded row matching the current search and filters, not only the current page; rows beyond the row limit are excluded, as are exports.

Can I style BaraTables with custom CSS?

Minimal frontend styles keep your theme in control; adjust them 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 a token on any ancestor to re-skin every table under it, or copy the block with Copy CSS and manage it in your theme via the "Theme CSS" output mode. --btbl-accent, --btbl-border, --btbl-muted and --btbl-surface are declared by the wrapper itself, so they follow your theme's primary color and the plugin's own default rather than an ancestor's value. Tokens cover the header, stripe, hover, border, footer and conditional colors, and the chart container's shape. A chart's text, grid and series colors are drawn on its canvas, so they are not CSS: they live in the chart's own settings, where the same Design tab controls them. The chart container's shape is CSS, and rides the token layer with the tables.

Where can I see examples?

See https://ktisisweb.com/baratables/ for screenshots and styling guidance.

更新日志:

2.1.2 Fixes: 2.1.1 Fixes: Accessibility: Security: Developer: 2.1.0 New: Fixes: 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