Block changes between 5.6 and 5.7

Permalink
I have built quite a few custom blocks for my website in Concrete5 version 5.6 . I now need to understand how to change the various files that are part of the block so that they are compatible with version 5.7. I have read the 5.7 Block documentation but what would really be helpful are some examples. I would really love to look at a controller.php file under 5.6 and compare it to a controller.php file in 5.7 to see what has changed. An example that accesses a database to retrieve information would be extremely helpful. Ditto with the other files that make up a block.

Are there any free add-ons available in both 5.6 and 5.7 that would be good examples to look at to understand the differences?

Thank you.

 
tallacman replied on at Permalink Reply
tallacman
you could also use block designer.
tallacman replied on at Permalink Reply
tallacman
https://www.concrete5.org/marketplace/addons/list-files-from-set
https://www.concrete5.org/marketplace/addons/list-files-from-set1...

may be useful too.
dgreer replied on at Permalink Reply
Thank you. The examples are very helpful.
ramonleenders replied on at Permalink Reply
ramonleenders
The default "Image Slider" is also a good example, as it uses the database connection for multiple tables, retrieves a file and outputs it etc. etc.

As tallacman stated, you can also use Block Designer if you don't want to spend time writing code over and over again. It will handle most of your problems and will save you lots of time developing.
dgreer replied on at Permalink Reply
My blocks include calls to non-concrete5 databases, display google maps and/or employ 3rd party javascript code. The block designer is not going to be much help with those tasks. As such I would prefer to understand the changes in programming a block. Never really found the task of building block very onerous under 5.6 .

Thanks for the 2nd example. Examples are always extremely helpful.

As a suggestion, it might be nice to add examples like these to the Guide to 5.7 for Existing Concrete5 developers.