Developing (v7+)

Adding a Block to Main Area in php

Hi. So what I've already gotten is a new page created under a parent page: $parentPage = Page::getByID(98, 'RECENT'); $data = array( 'name' => $_POST['name'], 'cHandle' => $_POST['name'] . "_handle", …

getRequestedPage and custom attributes

I am trying to modify the addon automatic email obfuscator. In the controller we can find this code that I'm trying to modify. [code]public function on_start() { $req = Request :: get(); $p = $req->getRequestedPage(); if (!$p->isAdminArea()) {...[/co…

RSS feed problem

On my blog, the RSS feed will generate a feed, but when the title of that page is chosen, there is a 404 error. The problem is that the code for the URL has an extra /content/ in it. Where is the code for the URL is generated in Concrete 5 so we can cha…

Error Box Showing Up?

On my view.php pages, I'm getting the error message to show up with no errors...just this (in the code) [code] [/code] And this is what I have in my view.php file: [code] [/code] According to t…

Display Profile Page in AutoNav?

How can I get the User Profile page to show up in my sitemap for use in the AutoNav? I have my sitemap setup like this: Home ---Staff Portal (contains login block) ------Staff Only Page ------Staff Only Page ------Staff Only Page ------etc I…

Deleting all type ids from cache.

Hi, I'm using really cool feature cache. I'm using different cache object under the same type but with a different ID. I don't find a way to flush all cache only under a type (all ids under this type). Is anyone can help me? Thanks a lot. Se…

Title not set properly on Page Not Found page.

Not sure if this is a bug or intentional. Can be seen at: http://www.concrete5.org/page_not_found (real page) vs http://www.concrete5.org/not_real_page Looks like the page object $c isn't properly set when directed from a page not found request.

Two different Help buttons?

It seems the Dashboard and the Edit Page button are two different buttons. I changed the URL that the Help button references in the site.php file, but only the Edit Page button actually goes to the page that I specified. When in the Dashboard, the Help bu…

Is there a better way to do this?

I'm always struggling with finding a way to get sub-pages to display a sidebar nav that shows ALL pages underneath the current top-level page. I came up with this: [code] $current = Page::getCurrentPage(); $parent = Page::getByID($c->getCollection…

Send member email before or at time of Deactivation

I have been working on a Membership site lately and I would like to have my members notified when their membership is coming due. A week or a month or multiple times would be ideal. At time of deactivation at minimum. Is there a way to add that featur…

Filter Posts