Code

Discussion on ElmapiCMS - AI-Powered Self-Hosted Headless CMS

Discussion on ElmapiCMS - AI-Powered Self-Hosted Headless CMS

Cart 116 sales

elmasapps supports this item

Supported

This author's response time can be up to 1 business day.

116 comments found.

I would like to suggest a feature to be able to see the row ID of added content (and to hide it via the settings cog dropdown if not necessary). Would help to able to see those unique numbers for projects built on this.

Hi;

Thank you for your suggestion. I will definitely add this in the next update.

Best regards.

I would like to suggest a feature.. Add the ability to save a current project as a template Then we could have these templates show up on the “Create New Project” page where we can select and create a new project from our templates..

Hi;

Thank you for your suggestion. It’s a very good idea. I will look into that.

Best regards.

Hi, I have other question, when Im trying to use 2 where in una request can’t get the response:

https://prnt.sc/V0K3Ll_N5wpS

But if I only send the field “username” work perfectly: https://prnt.sc/AeE-9MHOnYy0

Im sending the Authorization and Accept. I only can use “username” or “password” but no both together.

Hi.

I’m really sorry about the delay. There is a small bug about the multiple where clauses. I was preparing to release an update to fix it. Meanwhile I will share a quick fix for you.

I will look at the webhook issue and get back to you.

Thanks. Regards.

@ELMASAPPS do you have news about this fix ?

Hello;

I’m still working on the update. But in the meantime you can use this quick fix to solve the problem.

To fix the multiple where clause issue

1- Open

app/Http/Controllers/API/ContentController.php

2- Find this line:

if (!is_numeric(array_key_first($where)) || array_key_first($where) != 'or') {

3- Change to this:

if (!is_numeric(array_key_first($where)) && array_key_first($where) != 'or') {

In order to check the user info, you don’t need to get the password from the API in a where clause. Passwords stored in the database are encrypted. You only need to get the record by username or email then you can verify the password.

1- Open

app/Http/Resources/ContentResource.php

2- Find this line:

elseif($field->type == 'password')

3- Change it like this:

elseif($field->type == 'password'){
   $content[$m->field_name] = $m->value;
}

This will make sure you’ll get the password field when you make a get request.

Then you can use PHP’s password_verify function to check if the password is correct or not.

$response = $client->request('GET', 'https://your-domain.com/api/project_id/users?where[email]='.$email.'&first');
$body = $response->getBody();
$user = json_decode($body);
if(password_verify($password, $user->password)){
    echo 'Password is valid!';
} else{
    echo 'Invalid password.';
}

Best regards.

Hi, I have other question, when Im trying to use 2 where in una request can’t get the response: https://prnt.sc/V0K3Ll_N5wpS But if I only send the field “username” work perfectly: https://prnt.sc/AeE-9MHOnYy0

Im sending the Authorization and Accept. I only can use “username” or “password” but no both together.

Hello, I can’t update data via API. I can create and get, but is impossible to update. Always show the Login form:

https://prnt.sc/Ghx6gR28ysE2

Can you help me?

Hi;

Make sure you send two headers.

Accept     application/json
Authorization     Bearer your_access_token

Regards.

Thanks, work perfectly with the Accept application/json.

Hello, is it possible to somehow affect the wysiwyg editor settings to have only basic formatting (bold, italics, title)?

Hi;

I’m sorry. There is no available setting for that.

Regards.

Hi, i want send one post with one relation. From the dashboard work perfectly, and if I send one post to create single collection work also.

This is the case:

I have 2 collections: - user - webhook (Relation 1 to 1 to user)

The dashboard work without problem, but i don’t understand how to send one relation in Postman:

POST this to the endpoint work:
[
    {
        "locale": "es_CL",
        "name": "Presta Chile",
        "url": "https://www.demo.cl",
    }
]
But if I send this POST to the endpoint don’t work:
[
    {
        "locale": "es_CL",
        "name": "Presta Chile",
        "url": "https://www.demo.cl",
        "user": {
            "id": 300009
        }
    }
]

I check the documentation, but I can’t find how to send one post with Relation to other collection. Can you help me please?

Hi;

You’re on the right path. Just send the relation id like this:

[
    {
        "locale": "es_CL",
        "name": "Presta Chile",
        "url": "https://www.demo.cl",
        "user": 300009
    }
]

Regards.

Thanks, work perfectly.

Hi. This would benefit immensely from a video explainer showing how to. Any possibility of doing one?

Hi;

Do you mean an installation video or how to videos for other features? I will consider making an installation video. Thank you.

Regards.

how to videos. There’s obviously a wealth of features here, but having installed it, I´m not sure where to start to use it. But can’t wait to try

Hi;

I will consider making “how to videos”. You can start with the example blog project. Feel free to ask any questions. support@elmapicms.com

Thank you for using ElmapiCMS.

Regards.

Hi. I installed the application, and follow all steps from the installation. The app open the login, and if I insert wrong password the system say “incorrect”.

But after login, the website is blank. I install the website in a folder, no in root domain (Is ready in the .env):

https://demo.com/app/public

But the files JS and CSS is going to https://demo.com/js/app.js

How can I use the current domain?

I solved with htaccess to use the principal domain

RewriteEngine on RewriteCond %{HTTP_HOST} ^demo.com$ [NC,OR] RewriteCond %{HTTP_HOST} ^www.demo.com$ RewriteCond %{REQUEST_URI} !app/public/ RewriteRule (.*) /app/public/$1 [L]

Please consider adding default values for collection types. Example, the integer field. I need an integer field that defaults to 0. Also, when adding content to the integer field and using 0, it will not work. I have to enter a 1, then edit to a 0 and it will work. I can also use 00.

@elmasapps why no default values?

Hi;

I get your point. It would be a very useful feature. I’m trying to figure this out. I hope it will be available for the next update.

Regards.

Excellent, thanks!

Hello, I purchased today but am having issues with 500 error, can you help? I also sent you email..

Hi;

I just sent you an email. Thanks.

Regards.

Yes, it’s working now..

Here’s a Cpanel hosting tip.

I first repacked the distribution zip on my computer so when I unpacked on server it would unpack all the files and folders (app,bootstrap,public,etc.) in the folder I uploaded the zip to. So, the zip should NOT be a single folder like (ElmapiCMS_v2_0_0) when you open it, as it comes from CodeCanyon. You should see all the folders and files when first opened. This is important.. If your on Windows, repacking also gets rid of the 777 folder permissions of all the folders and files. Don’t use 777..

Now, create a subdomain which gives you a new folder on your server and then change the document root of the subdomain from public_html to public, do this from inside Cpanel (Modify a Subdomain), don’t change from ftp or file manager,etc.Cpanel should make the changes.

This is a good time to make sure PHP is right version, change if needed.

Ok, so folders should now look like this: /subdomain.domain.com/public

Now upload the zip you created with Cpanel file manager to root (not public), unpack with Cpanel file manager to root folder:

upload here: /subdomain.domain.com

It should look like this now : /...etc

/app
/bootstrap
/config
/database
/public

Now change env settings and you should be good to go, no need to edit permissions on folders and more secure!

Works every time here..

Can this be SaaS like Strapi ?

How can OpenAI / ChatGPT integration automate the process ?

Interesting ! How ? Can you make such product available here?

I’m planning to create a Saas plugin for ElmapiCMS. I can’t make any promises for AI integration. But I will look into it.

Regards.

By when this update can be expected tentatively? OpenAI integration should be a cake walk for you.

Hello,

Is there anyway to upload other file types besides just png jpg gif in the embedded forms?

Hello;

For the forms uploading other file types is not available. I might implement a setting option for that in the next update. Thank you.

Regards.

pre-purchase question, does this support laravel 10 yet?

Hello;

I will upgrade Elmapi to Laravel 10 in the next update. Thank you.

Regards.

Do you have an ETA?

Asking so I can plan purchase expectations

Hello, purchased the script and followed instructions but get a 500 error when I go to login?

Hello;

Thank you for purchasing ElmapiCMS. Could you please send your hosting to this email and I’ll take a look at it. support@elmapicms.com

Regards.

I have created a password filed. I understand that the data entered is stored encrypted in the DB. I want to verify a password submitted via API with the stored password. How can I do that? Is there a PHP function i can use to create the hash for a password so it would match the hash stored in the DB?

Hello;

Sorry about the delayed response.

Right now it’s not possible to verify the password against the one that is stored in the db. Because I made a mistake. Elmapi hides the password field from the API results because of security concerns. But this makes it impossible to verify the password. I will fix this in the next update.

For now you can use this workaround by editing the code. 1- Please open
app/Http/Resources/ContentResource.php
2- Find this line:
elseif($field->type == 'password')
3- Change it like this:
elseif($field->type == 'password'){
   $content[$m->field_name] = $m->value;
}

This will make sure you’ll get the password field when you make a get request.

Then you can use PHP’s password_verify function to check if the password is correct or not.

$response = $client->request('GET', 'https://your-domain.com/api/project_id/users?where[email]='.$email.'&first');
$body = $response->getBody();
$user = json_decode($body);
if(password_verify($password, $user->password)){
    echo 'Password is valid!';
} else{
    echo 'Invalid password.';
}

Best regards.

Thanks a lot, works great! :-)

I’m glad you solved it. Again I’m really sorry about the delayed response.

Best regards.

Do you have front end already for React js or Bootstrap that integrated with these API as default option, even not with this product but at least as your other product as addon you can make so user can buy both together and can start using it without depending it on any developer?

Lets make front end version as addon in React and bootstrap both then your this product will speed up the sale, and sure I will buy then.

Hi;

You’re absolutely right. I’m working on more starter templates. A react and bootstrap based template definitely will be one of them. Thank you.

Regards.

When you going come with this, any date, I am waiting for this to buy?

Hello, Will the system be updated to Laravel 10 in the future? Thanks.

Hi;

Yes. I will upgrade it to Laravel 10 in the next update.

Regards.

I am getting 500 error, I have followed all the steps as per your documentation, is their any specific URL required for installing

It is having blank response

Hi Dear. I am still waiting for your reply on this. I need to know what is the API to send data to form and what is the response for the same? Can we also create response for the POST APIs?

Thanks for the clarifications

Hello! Thanks for the update today. I don’t see release notes on the product page. Can you provide a link to the release notes? Thank you.

Hi;

I’ve just updated the item’s page. Also you can find the changelog in the documentation. https://elmapicms.com/docs/upgrading.html

Regards.

Thanks for the quick response!

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey