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
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
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:
and view.php contains:
But nothing showing up on the dashboard. What am I missing?
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:
But nothing showing up on the dashboard. What am I missing?
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:
But I still get a blank screen.
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.
Did you try to clear your Cache yet?
- Stef
- Stef
It turned out to be a typo in the name space. Thanks for your help anyway.
It turned out to be a typo in the name space. Thanks for your help anyway.
https://www.concrete5.org/documentation/developers/5.7/working-with-...