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

add new element have bug #707

Closed
babakhakimi opened this issue Jun 19, 2024 · 3 comments · Fixed by #696
Closed

add new element have bug #707

babakhakimi opened this issue Jun 19, 2024 · 3 comments · Fixed by #696
Labels
bug Something isn't working
Milestone

Comments

@babakhakimi
Copy link

babakhakimi commented Jun 19, 2024

hi
i wrote a toolbar element and put files in below paths:
/media/templates/site/TEMPLATE_NAME/astroid/elements/
/templates/TEMPLATE_NAME/astroid/elements/

but element dont show in template
I noticed a difference when I put the element files in the path below which I send the picture

Differences in values ​​are visible

The photo below shows the settings of the element when I place the element in the mentioned paths
Screenshot 2024-06-19 at 10-58-21

The picture below shows the element settings when I place the element in the path of the library folder
Screenshot 2024-06-19 at 11-14-28

When the element is placed in the library path, it can be displayed in the template settings
Screenshot 2024-06-19 at 11-44-02 dorna_dashboard

@babakhakimi babakhakimi changed the title add neww element have bug add new element have bug Jun 19, 2024
@sonvnn
Copy link
Member

sonvnn commented Jun 19, 2024

Thanks for report issue. I will check and response you in the next 24h

sonvnn added a commit that referenced this issue Jun 20, 2024
@sonvnn
Copy link
Member

sonvnn commented Jun 20, 2024

@babakhakimi I fixed this issue on 5aca217

Tested and it works
Screen Shot 2024-06-20 at 11 03 10

To create custom Widget please follow JROOT/media/templates/site/{YOUR_ASTROID_TEMPLATE}/astroid/elements/test/test.php

Please try it by yourself and give me your feedback.

Best Regards,
Sonny

@sonvnn
Copy link
Member

sonvnn commented Jun 21, 2024

I created a tutorial about Build Widget here https://docs.astroidframe.work/developers/build-or-override-a-widget
You can check it.

@sonvnn sonvnn linked a pull request Jun 22, 2024 that will close this issue
@sonvnn sonvnn added this to the Version 3.1.0 milestone Jun 22, 2024
@sonvnn sonvnn added the bug Something isn't working label Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants