Developing (v7+)

Why do URL paths have "index.php" before SEO-friendly URLs?

In properties, my pages all have SEO-friendly paths that look like this: http://php.22graphics.com/print/collateral-sessanta-60 But, those don't work at all. It only works if you put an "index.php" in between "22graphics.com" and "print" like so: …

mobile theme

how do I go about making a mobile image gallery?

Can multiple page types use the same base php file?

Here's what I'd like to do: Use one generic page type template. Pre-populate that template with a variety of blocks by default (I already know how to do that in the dashboard). End up with several page types that the user can select from that eac…

Permission-specific styles for people who are logged in

Hi all I am starting to play with permissions and have run into a couple of problems with the style of the site when the editing bar is showing. I was using this to apply a specific style (namely adding an extra 50 or so pixels to the floats in the pag…

How do I link to a file in a custom block from View.php?

Hey there - I hate to start a new thread just to ask a question like this ... but I've given up. I can't for the life of me figure out how to link to an image in /blocks/myblock/view.php ... does anyone know how? Or where 'view.php' exists when it is r…

Inject code once in a page from a block

Hi ! I use the same custom block more the once in a view. Every block have the same css code to display so I have the same css code many times in the page. So I have two questions :-) 1) How can I check if a block is used in another area on the p…

How to debug concrete5

Hi ! I am writing a new block and will debug some bugs. I have tried Zend Studio with Zend Server and also Netbeans and XDebug, but I am not happy with the IDEs. Everytime I start a debug session on the index.php after a dispatch cycle the index.…

Where to Put Block JS That's Shared Between View and Edit?

I might be missing something obvious, but if I have some common JS code - a JS class, for instance - and that code is used both in the block's view as well as when adding/editing a block, how do I reference that code without putting it in two separate pla…

Database relations and advanced packages

Hi, I want to start building blocks/packages for concrete5. I think I'm familiar with the very basics. Now I want to be able to add database relations, I could't find a sample for ADODB XML. Does anyone know any good tutorials for advanced bloc…

Filter Posts