Dashboard management of blocks 5.7

Permalink
Hi,

I am about to start making an addon for Concrete 5.7 and am a bit lost as to how to start. It's basically a collection of testimonials managed in the dashboard, similar to https://www.concrete5.org/marketplace/addons/studio-testimonials-pro...

I could just buy the addon, but I need to learn how to do it because I have to create similar admin panels for special offers and other items, so I'd rather learn how to do it.

I can create my own blocks, but I don't know how to create a management section from the dashboard. Can anyone give me any pointers?

Thanks,
Erik

 
StefSmeers replied on at Permalink Reply
StefSmeers
a575606 replied on at Permalink Reply
Thanks for the answer, yes, I'm looking for something like that, but find the documentation a bit thin.

I added a controller to Application/controllers/single_page/dashboard/testimonials.php
Then added a single page at Application/single_pages/dashboard/testimonials/view.php

controller contains:

<?php
namespace Application\Controller\SinglePage\Dashboard;
use \Concrete\Core\Page\Controller\DashboardPageController;
class Testimonials extends DashboardPageController
{
    public function view()
    {
    }
}


and view.php contains:

<?php defined('C5_EXECUTE') or die("Access Denied."); ?>


But nothing showing up on the dashboard. What am I missing?
a575606 replied on at Permalink Reply
Also, if I add a single page manually via the Pages admin panel at 'dashboard/testimonials' a Testimonials link shows up, but nothing I do with the pages I created seems to have an effect.

i.e. I added this code to the view method of the Testimonials controller:

$this->set('message', 'My regular message');


But I still get a blank screen.
StefSmeers replied on at Permalink Reply
StefSmeers
Did you try to clear your Cache yet?

- Stef
a575606 replied on at Permalink Reply
It turned out to be a typo in the name space. Thanks for your help anyway.
a575606 replied on at Permalink Reply
It turned out to be a typo in the name space. Thanks for your help anyway.