Developing (v7+)

Stacks - SetBlockWrapperStart and other Area functions

Currently to add a wrapper you can use the code below, this wraps each block with the html defined within the function parameters. [code] $a = new Area('Main'); $a->setBlockWrapperStart(""); $a->setBlockWrapperEnd(""); [/code] However if you want …

Pretty urls and trailing slash removal

It seems to me that C5 with pretty urls (read htaccess mod-rewrite) puts a trailing slash on the end of all urls. Search engines will tend to treat 'www.myc5site.com/about/' and 'www.myc5site.com/about' as two separate urls initially leading to a concern…

Is the the current page accessible to Guests?

I have an element that I only want to show on the page if the page is accessible to guests. So I want to determine if the current page is accessible to guests. The following code works: [code] $gl = new GroupList($c); $gArray = $gl->getGroupList(…

Filter Page List By multiple select Attribute

Hi, I am trying to filter a page list using a select attribute with contains multiple values. here are a few ways i've tried. None works so far. This is within my block controller. [code] $cPage = $this->getCollectionObject(); $pak = CollectionAt…

some questions

hey all, im new to concrete5 and for now i would recommend it for every users that use CMS ...but i have one little question... i need to do a form that pulls info from an extra database that i have in phpmyadmin. i have all the code working in php/html …

Override core block controllers within package

Hi community! I have problem with overriding core block controller in my package. I used to have this override in root block folder, and it worked fine, but when I moved it do package it stopped to work. I assume that there is some problem with locatio…

Back button in browser not working correctly on certain pages

I'm using the Galleria addon for a site I've developed but the client has noticed that when they select their browser back button that the page doesn't go back correctly. I have a link, is there any chance I could get someone to take a look please. …

Advanced Permissions

Hi, I read all the possible topics but still I'm stuck with the following. I created a website and want to grand my customer access to edit and approve pages, so I created a USER and set the following permissions : - View - Preview Page As User - …

How to have Page unpublished by default?

Hi there, I thought I would start a new post for this. New to Concrete5 and think it has great features. As far as I am aware there is no easy way to unpublish content for dummies by default which is a bummer as I deal with lots of dummies. When you…

Filter Posts