Developing (v7+)

Standard C5 Inputs

So I'm creating a Block that goes a bit beyond some of the original features of the bundled "content" Block. As I'm using this to learn as well, I've noticed that there's a lot of tinymce initialization code found in editor_config.php. Much of it focusi…

filterByAttribute

I want to search the users with the magic method of the user_list model. This is my code [code] $userList->filterByAddress('%'.$keywords.'%', 'LIKE'); $userList->filterByZipcode('%'.$keywords.'%', 'LIKE'); $userList->filterByCity('%'.$keywords.'%…

Getting All Page Attributes of a Specific Type

I'm trying to get all page attributes of type 'image/file'. When I use [code] Loader::model('attributes/categories/collection'); CollectionAttributeKey::getAttributes( $c->getCollectionID(), $c->getVersionID() ); [/code] I get the current…

Basic Application Kit Example

I have developed a few blocks but i am lost when it comes to develop a more complicated application like packages with some backend admin pages. I think it would benefit everyone to have a basic hello wold application kit to download and get started wi…

block inside block

hi all, i make some trick for add nav appear in slideshow, but i not sure this is the right aprroach [code] // element/header.php $a = new Area('Header Nav'); ob_start(); $a->display($c); $printed = ob_get_contents(); ob_end_clean(); define(…

Block Creation Tutorial

I had a look at the stickied thread, but I noticed that even the updated Block tutorial link is dead again. I'm interested in getting started with writing a C5 Block, but have nowhere to really get started. Lifecycle, accessing existing functionalit…

Image captions through tinymce

I wonder if anyone has a solution they'd like to share for this: managing image captions in the tinymce editor. I know I could create a custom template with the image block and grab the alt/caption, but that's not an ideal option in this case (more wor…

Search function and special characters æøå

Hello everyone, I have been struggling with the search function. It seems that words containing special characters like æ, ø and å are returning with no results. My site is hosted by concrete5. Im running concrete5 version 5.4.1.1. I have checked the d…

Embedded autonav does not refresh

Hi there, I have a template-embedded autonav a-la: [code] $bt_main = BlockType::getByHandle('autonav'); $bt_main->controller->displayPages = 'top'; $bt_main->controller->orderBy = 'display_asc'; $bt_main->controller…

Filter Posts