Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add totals= parameter to the [bw_table] shortcode #145

Open
bobbingwide opened this issue Feb 9, 2020 · 1 comment
Open

Add totals= parameter to the [bw_table] shortcode #145

bobbingwide opened this issue Feb 9, 2020 · 1 comment
Assignees
Labels

Comments

@bobbingwide
Copy link
Owner

@bobbingwide bobbingwide commented Feb 9, 2020

Similar to bobbingwide/oik-bob-bing-wide/issues/32 I want to be able to use the totals= parameter on the [bw_table] shortcode to be able to perform counts and sums of columns in a table.

Example:

[bw_table post_type=oik-plugins posts_per_page=100
 fields=title,blocks_catalogued,_oikp_block_count 
totals=c,t,t prefixes="Count:,Catalogued:,Delivered:"]

Ideally this functionality would also be available in any block that invokes the [bw_table] shortcode. This can come later.

I'm not yet bothered about what happens if the table is paginated.

@bobbingwide bobbingwide self-assigned this Feb 9, 2020
@bobbingwide

This comment has been minimized.

Copy link
Owner Author

@bobbingwide bobbingwide commented Feb 9, 2020

I'm not yet bothered about what happens if the table is paginated.

In the current implementation the totals apply to the rows actually displayed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.