templaza / astroid-framework

Powerful framework for designers and developers to create responsive, fast & robust Joomla based websites and templates.
https://astroidframe.work/
GNU General Public License v3.0
76 stars 12 forks source link

add new element have bug #707

Open babakhakimi opened 1 week ago

babakhakimi commented 1 week ago

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

sonvnn commented 1 week ago

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

sonvnn commented 1 week ago

@babakhakimi I fixed this issue on https://github.com/templaza/astroid-framework/commit/5aca217839f4e2de7f6d18a77f57f299e765e5d9

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 commented 1 week ago

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