Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom templates and blocks are not showing in the editor #73

Open
JerrelZ opened this issue Mar 5, 2023 · 9 comments
Open

Custom templates and blocks are not showing in the editor #73

JerrelZ opened this issue Mar 5, 2023 · 9 comments

Comments

@JerrelZ
Copy link

JerrelZ commented Mar 5, 2023

Hi!

First of all, thanks for building this great package.

I'm trying to add custom templates and blocks by added them to the 'resources/views/vendor/laravel-grapejs/templates' and 'resources/views/vendor/laravel-grapejs/gjs-blocks' folders, but somehow they aren't showing in the editor.

Even the two files that were already there (named example.blade.php) aren't showing.

Any idea what I'm doing wrong?

Thanks.

@XFAISAL
Copy link

XFAISAL commented Mar 13, 2023

👍

@ghost
Copy link

ghost commented Mar 13, 2023

@JerrelZ please look at this section in the readme and let me know if this has not helped you.

@dyoh777
Copy link

dyoh777 commented Mar 17, 2023

I have the same issue.

1 similar comment
@emincer
Copy link

emincer commented Mar 20, 2023

I have the same issue.

@emincer
Copy link

emincer commented Mar 20, 2023

@JerrelZ please look at this section in the readme and let me know if this has not helped you.

This is a Slack link. I don't have access to your workspace.

@ghost
Copy link

ghost commented Mar 21, 2023

Apologize, I've updated the link. Review now and let me know if it doesn't resolve your problem.

@XFAISAL
Copy link

XFAISAL commented Mar 21, 2023

still blocks and templates not working

@emincer
Copy link

emincer commented Mar 21, 2023

still blocks and templates not working

From what I can tell, templates fail to show if they include Laravel directives and possibly Tailwind, which would make it useless for me. I'm not entirely sure but I can get at least get Blocks to show up but only if they are vanilla HTML. Hopefully @jd-dotlogics can look into this. Should Laravel directives and Tailwind work?? Also, where are buttons and other elements in the edit panel??
Screenshot 2023-03-21 at 10 31 35 AM

@favouraka
Copy link

I had this this issue a while ago and I found out that when two blade files with similar names were in the resources/views/vendor/laravel-grapejs/gjs-blocks or resources/views/vendor/laravel-grapejs/templates directories, this issue would occur.

I tried giving each block and template unique names with kebab-case naming convention and it was fixed. I hope it also works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants