Making my first theme
Permalink
Hey there :) I'm testing Concrete5 to see if it'll fit as a quick fix for this company that wants a CMS running quickly, and being able to control content with the IT knowhow of a 40 year old hermit.
So let's start, as I've hit some snags. Like for instance, when putting in "quotes" in the TinyMCE editor while posting content all the content was either garbled or erased as the blocks would turn out completely empty.
This i managed to fix with a new install, which led me to believe it was something from the marketplace that stumped the quotes.
Another thing is I can't seem to find any indepth tutorials on making themes, and general coding procedure and available functions.
For instance, I want to put a autonav block in my themes footer.php that automatically loads the "footer nav" template from blocks/autonav/autonav/template.
I've managed to do this by manually adding the menu via "Edit Page", but that's just not good enough.
Also, I've edited a few files from the concrete/blocks/ folder and the concrete/helpers/ folder, by putting them in their symmetric folders in the root Concrete5 folder. Hope this is common practice and is there to make things easier for developers :)
Thanks for reading, and I hope I've been concise.
So let's start, as I've hit some snags. Like for instance, when putting in "quotes" in the TinyMCE editor while posting content all the content was either garbled or erased as the blocks would turn out completely empty.
This i managed to fix with a new install, which led me to believe it was something from the marketplace that stumped the quotes.
Another thing is I can't seem to find any indepth tutorials on making themes, and general coding procedure and available functions.
For instance, I want to put a autonav block in my themes footer.php that automatically loads the "footer nav" template from blocks/autonav/autonav/template.
I've managed to do this by manually adding the menu via "Edit Page", but that's just not good enough.
Also, I've edited a few files from the concrete/blocks/ folder and the concrete/helpers/ folder, by putting them in their symmetric folders in the root Concrete5 folder. Hope this is common practice and is there to make things easier for developers :)
Thanks for reading, and I hope I've been concise.
To insert Auto nav [code] <?php
$bt = BlockType::getByHandle('autonav');
$bt->controller->displayPages = 'top';
$bt->controller->orderBy = 'display_asc';
$bt->controller->displaySubPages = 'none';
$bt->render('templates/header_menu_dropdown');
?>/code] you'll want to customize this tho