Developing (v7+)

Thumbnail in page list sizing

Im having trouble trying to get my thumbnail to display at the size I want it to in a page-list template, I had a go at the tutorial on http://www.codeblog.ch/2009/03/concrete5-templates/ but it doesn't seem to size my thumbnail to the size I specified, b…

Error handling / form validation for block save()

I'm building a custom block type. When the user adds or edits one of these blocks, I want to validate the information submitted in the add/edit forms. What's the best way to do this? The way I'd like to do it is in the BlockController::save() metho…

Sagepay UK for ecommerce block

Hi I was wondering has anyone developed a sagepay UK option for ecommerce as a client does not wish to use paypal Cheers!

Naming conflict: Don't use "target" !!

I was working on a custom block today and wasted a lot of time trying to figure out why every time I saved some edits to an instance of the block I got a blank page with a JSON string at the top. (like this: {"aID":"11","arHandle":"Main","cID":"1","error…

On Theme install Set Page Defaults

Hey, just wondering if there is a set way to do this already, Lets say i have a theme that has the areas Header Nav Header Main Footer 1 Footer 2 Search by default, there will not be a search block in the search area (i don't want to hard code…

Tricky area permissions question

I have kind of a funky situation - I am setting up an external form block that adds a page based on a text field. Once the page is created, I'm setting the permissions on that page to OVERRIDE: [code] $_c = Page::getByID($args['parent_cID'], "RECENT"…

Page Defaults not saving/displaying

Hi there, I'm fairly new to setting up c5, but I think I'm getting hte hang of it. I've taken a theme and customized it, creating just a "full.php", and really only having "full width" pages. The nav works fine, but I'd like to create a sub-nav, so …

function save in controller.php, for blocks

I'm new to PHP and can't wrap my head around this or find any helpful documentation, so a point in the right direction would be great. I'm trying to build a block with fields that draw from two libraries. "Choose image" will draw from the image library…

installation process, writable test

The method testFileWritePermissions, shouldn't it check if updates is writable like config, files and packages?

States / Provinces List for Germany (please add to SVN / CVS)

can anyone add the German states ("Bundesländer") to the "states_provinces.php" (class "ListsStatesProvincesHelper", file can be found here: /concrete/helpers/states_provinces.php) -> variable "$stateProvinces" and here is the list: [code] .... '…

Filter Posts