Developing (v7+)

Theme - home.php - default.php

I am new at C5. I have built and installed a theme with the following files: default.php, full.php, view.php and home.php. My Home page has a different look than the other landing and child pages. It seems C5 is able to load home.php when the user cl…

Limiting width of question in form block

I used the form block to create a form. The problem is that the amount of spaced dedicated to the text of the questions on the form is much too wide. In other words, my answer field aren't wide enough. Is there a way to specify a default width for the …

Getting thumbnails to show in file block

Id like to display a the files relevant thumbnail(as shown in file manager) in view.php in my custom file block. e.g if i upload a pdf i want to display the pdf icon on the page. i can get the file object using $controller->getFileObject(); but dont…

autonav/pagelist in templates

Can someone either explain or point me to the spot in the doumentation that goes over adding custom pagelist (or perhaps more appropriately, autonav) areas to a template. I'd like to set up a secondary nav built into one of my template that lists only th…

Hide block from registered users

Is it possible to hide a block from registered users, only allowing guests to see it? So when a registered user logs in that block disappears. Using advanced permissions, it seems as though if the guest has Read rights on a block then everyone else doe…

<style></style> Question

Hi guys! I am in the process of building a website for a client and I am running into one weird issue. In the header I am pulling an extra tag with nothing inside of it. I checked my header and it is not in my header element. I believe it is in the he…

Calendar Addon PHP Errors

I already posted this under the Calender Support & Feature Requests section but thought I'd post it here too. We just recompiled PHP on our server and now all our sites with the calendar addon are throwing these errors on any page the calendar block is…

Cleaning up outputted code

Hi guys and gals, First of all, thank you to anyone that takes the time to take a look at this. Secondly, before I get started, please know I am a very content user of C5 (in fact I LOVE IT) and I hope this post in no way seems like a complaint as i…

Including Block-specific JS?

I'm familiar with the automatic method of including block-specific JS code using a "view.js" file, but what if I wanted to explicitly include a JS file with a different name that resides in my block's directory via the "addHeaderItem" method? How do I ref…

Filter Posts