Developing (v7+)

Composer in 5.7

I'm having some problems setting up my blog now that I've upgraded to 5.7. Here's my situation: I basically have two sections to my site - a home page with the Long Story Short one-page theme, and a blog using the Stucco theme. In the site map, I have …

Home Controller

Hi guys, I'm pretty new in concrete5 (I really like it compared to some CMSs) and I have a little question , here it is : I understood how concrete's controllers are working but when I try to create a controller for the home page it won't use the view …

Search No Results

Hi, I'm starting a site and since I was still at the beginning and it's for a friend (nothing critical), I updated to 8.0.2 to start getting familiar with it. But now when I added a search Block, it gives me no results. I re-ran the jobs, even went to th…

Database Table for Tracking Code

Hi, I am working with my ad company and they want me to update some ads since they've changed to asynchronous tags. However, when I added the supplied code for the header section underneath my analytics code in the Tracking Code section of settings, i…

Initialize C5 in custom script

Hey, how do I initialize C5 in custom PHP script? I have a script header_ajax.php that calls a part of C5 teamplate: [code] echo json_encode(include('elements/header_nav.php')); [/code] My intents here - header_ajax.php should return html code of head…

HTML to PDF help

I have been looking all around for some help with a way to convert a webpage to a PDF. There is a push button plugin to convert the page you are on to a PDF in 5.6. But I converted my site to 5.7 and there is not a plugin that can do that. I have tried…

Why does my block get a new bID sometimes?

Hi, I am on 5.7.5.9. I have a custom block. I use the blocks bID as a foreign key into a detail table of additional attributes. SOMETIMES when I edit the block, it saves with a new bID. Most times it does not. I am still editing and working on the bl…

What's the reason not to simplify some functions in the core?

Can someone with more PHP experience explain something for me? Here's a snippet of code from the core (Concrete\Core\Page) [code] public static function getCurrentPage() { $req = Request::getInstance(); $current = $req->getCu…

Filter Posts