Forum

Thread tagged as: Addons, Api, Add-on-development

managing a custom db table

I am new to perch, so sorry if this is a rookie question. I have a lot of store data, on a site that already exists there is a lot of site data which I would like the nice perch CMS to manage for me. Is this possible to do with the basic perch and addons, or would I need the more advanced package to do this?

note that I am an experienced Drupal/php developer if that helps in the answer.

Dan Duke

Dan Duke 1 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

If you are a PHP developer then you could write your own app using the API, which interfaces with your data. The docs are here: https://docs.grabaperch.com/api/

Thankyou for the tip, I have a local perch site nicely working now. And so went to look at the apps and API. I added the sample module to my apps folder (and updated apps.php) and also did the same with the blog module. I then go to my perch admin page, logout, and log back in again. But the installation does not appear to happen. I would expect some new DB tables to appear, and also a nice 'blog' admin page to appear on the admin menu system.

Have I missed an important step, or misunderstood how this would work?

This tutorial video helped with the blog install: https://docs.grabaperch.com/video/v/installing-the-blog-app/

But still, I could not see the sample app under that 'apps' menu list.

Okay, found the issue. For reference, when you download any app, the folders are nested, so you need to find the /app/ folder, then grab the file inside of that. I now have a my_sample app there nicely to use as a starting block.

Drew McLellan

Drew McLellan 2638 points
Perch Support

The nesting becomes clearer for downloads that content apps, field types, feathers and example files!