bobbingwide / oik-bob-bing-wide

More lazy smart shortcodes
https://www.oik-plugins.com/oik-plugins/oik-bob-bing-wide-more-lazy-smart-shortcodes/
GNU General Public License v2.0
2 stars 0 forks source link

Improve support for loading the CSV file from an attachment or file using the src attribute #40

Closed bobbingwide closed 2 years ago

bobbingwide commented 3 years ago

There are a number of shortcodes, which have now been converted to blocks, that load content direct from the shortcode or block's content attribute. [bw_csv] also supports a src attribute. If there is no content and the value is numeric then the content is loaded from the attached file to the attachment with the given post ID. This may not have been used for a while.

I want to extend the logic for the following shortcodes and blocks

Requirement

Proposed solution

bobbingwide commented 2 years ago

This doesn't appear to be working in blocks.wp-a2z.org for the shortcode. But the block does work on the front end.

<!-- wp:oik-bbw/csv {"src":"https://blocks.wp.a2z/wp-content/uploads/sites/10/2019/12/wp-plugins-blocks-20191109.csv"} /-->
bobbingwide commented 2 years ago

This doesn't appear to be working in blocks.wp-a2z.org for the shortcode.

On revisiting the post ( https://blocks.wp.a2z/about/block-catalogue-history/block-plugin-todo-list/ - ID 3994 ) the problem does not appear.

I didn't complete the optional task. Closing anyway.