Developing (v7+)

Structure of /updates folder

Hi. I've created a package which checks for the use of various js and css files. I'm matching the file path against: DIR_REL . '/concrete/[css|js]/...' That's worked fine up until now that somebody has deployed on a multisite solution. It appears…

Can you use an image/file attribute on a user model?

I'm trying to add a few different image attributes to a user model, and I'm running into a couple of problems: 1) The image picker doesn't work on the profile page unless the user is given edit access for the profile edit page. It seems like this is b…

Call a controller method from a Job?

Hi is it possible to call a Controller method from a Job? As it's a job, the required controller isn't loaded I guess, so I think I'll need to create a controller object and then I should be able to call the method inside it. Any tips to get me …

Registry available?

Is there a registry class available as an alternative to using global or $_session variables in a c5 powered application. Thanks

dynamic set page title within single page

I like to set the page title from the controller code of a single page. The single page is generatie content, so the title is per page different. How can i do that? I tried just to set $pageTitle but that does not do the job.. oh, and i mean the…

Mega Menu addon

Hi, are there any other solutions for dropdown menus other than the superfish? I was thinking something along these lines: http://www.sohtanaka.com/web-design/mega-drop-downs-w-css-jquery/ What would it take to make something like this into a …

Form Submission Attachments

Hey Guys, I'm having a hopefully tiny issue... When a user submits a form with attachment (image), the e-mail delivered only shows the ID/Name of the image, instead of a download link... or even better, files as attachment.. Does anyone have a "c…

view.php won't load the header and footer content

I have created a view.php file and it works great except it won't load my logo, footer content and navigation links. Anyone know why this is? My view.php code is below: [code] …

div with z-index stops editing

I have 2 stacked divs using absolute positioning and z-index - main Content on top of background Content. Both have the necessary php to enable editing. However, this doesn't work as the I can't click and select 'edit' or add a block. [code] …

How to validate a string and/or a regular expression

C5 allow a basic validation for required form field, integer, mail. But it seems that no methods are available for validating alfabethical strings or moreover regular expression. Does anybody know how to do it without patchwork of validation library th…

Filter Posts