A table block, asset registering and inline block editing

Permalink 3 users found helpful
Hi all,

I put together a quick video today demoing a table block for 5.7 we've put on github.
The video and the blog post also includes an example of asset registering in a package which might be interesting to some.

The block is to quickly edit (or paste in from a spreadsheet) some tabular data. It's an alternative to wrestling an HTML table.

With this block I also worked out how to make it inline editable (like the content block) and I've given some tips on how to achieve this in the blog post too.

I'd love any feedback (or corrections!)

http://www.mesuva.com.au/blog/concrete5/a-table-block-for-concrete5...

Cheers
-Ryan

mesuva
View Replies:
JohntheFish replied on at Permalink Reply
JohntheFish
Excellent video and explanation. Thanks for posting.
MrKDilkington replied on at Permalink Reply 1 Attachment
MrKDilkington
I'm with John, very nice job.

This is an excellent way to quickly create uniform styling for tables across a site.

I need to look at how the custom templates are made, but this could be very useful for making a collection for people to use (like the styles in the attached screenshot from Word).
mesuva replied on at Permalink Reply
mesuva
Styling shouldn't be a problem as the output of the table is pretty vanilla, but I did include a few extra classes to make things easier to target. Custom templates could be created for the block where it doesn't actually change the view.php file, but it just includes a different view.css file.

(I sort of think it's up to the theme to determine styling, but I can envisage wanting a couple of different formats within a theme)
andrew replied on at Permalink Reply
andrew
Awesome work. Really cool that's an inline-editable block as well.
AndyJ replied on at Permalink Reply
outstanding. I can't wait to have a play around with this. Uncoupling tables from general content makes huge sense in a lot of scenarios. The code run through on asset registering and setting inline was really useful - thanks.
JohntheFish replied on at Permalink Reply
JohntheFish
I had a couple of small changes to make to the 5.7 version of my editor comment block. Inspired by @mesuva's post and blog, I got carried away and also changed it to use inline editing.

http://www.concrete5.org/marketplace/addons/editor-comment1/...
anete replied on at Permalink Reply
anete
Thanks @mesuva this is a great add-on. Was able to style it nicely to exactly what I required.