Quick tip for developers writing custom blocks for concrete5. If you have coded a block, placed its folder in ‘blocks’ directory but cannot see it available for installation in concrete5 backend (in the "Add functionality" section), check the controller class name. That is the issue in most cases. It should match the block directory, i.e. if your block folder is “my_folder”, then in controlller.php you should have this:
class MyFolderBlockController extends BlockController {
I don’t recommend to use anything in your block directory name except digits, a-z characters and underscores.
admin concrete5 for developers
If you develop your own block, you will probably need to use some css to properly style it. But the issue is that you can’t access the css file of the users theme (of course if you’re not developing the block for one specific project). However you can create and use custom css file for this specific block type.
Read more…
admin concrete5 for developers
Some new concrete5 users get confused when they cannot find a way to add table to a page at their concrete5 website. However in fact there are several ways to do that. I will describe 4 ways to add table on the page with concrete5 cms… Read more…
admin concrete5 for advanced users, concrete5 for developers, concrete5 for dummies
Anyone who regularly works with concrete5 themes could face with the following issue:
If you sign in as admin, the concrete5 editing toolbar appears at the top of all pages. This sometimes can cause a problem making body background not align properly with some other images on the page if it was designed as a single picture. There is a workaround I’m going to tell you about.
Read more…
admin concrete5 for developers
concrete5 recommends using additional typography.css stylesheet within a theme. I noticed that sometimes people don’t understand the purpose of the file and put there much trash, which shouldn’t be there. So what is typography.css and where it is used?
Read more…
admin concrete5 for developers
Some developers may need to show the list of pages that were the most recently updated in concrete5. This code snippet should help you doing this or similar tasks.
So, open the file of your concrete5 theme and add the code snippet specified below. Or you can create a block with such code. Or just simply wait till we release such block the next week or so.;-)
Read more…
admin concrete5 for developers
I recommend to apply the following fix in concrete5 to make the result xhtml code be more w3c compliant. As you should know, all ampersands (&) should be replaced with its html representation in hrefs, js sources, image sources, etc.:
&
Read more…
admin concrete5 for developers
Recently I faced with the following problem in Firefox 3.0.8. I prepared a website in Russian language, using concrete5 cms. I didn’t change the default encoding which was UTF-8. But what a strange behavior from Firefox: it correctly detected the encoding only from time to time. I opened the page once – the text was incorrectly displayed, refreshed the page – the text turned to be readable, refreshed more – unreadable again. Really strange, don’t you think so?
I managed to fix the problem by editing index.php in root concrete5 folder, just add the following line of code before the last line:
header("Content-Type: text/html;charset=utf-8");
admin concrete5 for developers