AbanteCart Community

AbanteCart Development => Development Help Needed => Topic started by: yonghan on August 06, 2014, 02:31:33 AM

Title: include javascript and css for extension admin page
Post by: yonghan on August 06, 2014, 02:31:33 AM
Hi,is it possible to  use javascript and stylesheet for the extension administration page?And how to do that?I've tried to use templateresource and addstyle,but it doesn't works.Thanks
Title: Re: include javascript and css for extension admin page
Post by: yonghan on August 06, 2014, 05:50:29 AM
I got it working already.It must use default as the template instead of default_html5.I'm using the developer_extension_tool to create the project.Hopefully in the next version of developer tool,the admin part will use default template instead of default_html.Thanks a lot.
Title: Re: include javascript and css for extension admin page
Post by: abolabo on August 06, 2014, 05:55:14 AM
Hi,is it possible to  use javascript and stylesheet for the extension administration page?And how to do that?I've tried to use templateresource and addstyle,but it doesn't works.Thanks

hi.
Please create new topic about that. i'll answer.
Please, do not ask questions via PM that can be helpful for other people.
Title: Re: include javascript and css for extension admin page
Post by: yonghan on August 06, 2014, 06:03:46 AM
Hi abolabo,sorry if i ask you via pm.I have found the solution just now.Thanks a lot.
Title: Re: include javascript and css for extension admin page
Post by: abolabo on August 13, 2014, 04:14:34 AM
Hi,is it possible to  use javascript and stylesheet for the extension administration page?And how to do that?I've tried to use templateresource and addstyle,but it doesn't works.Thanks

give me example of your code...
Title: Re: include javascript and css for extension admin page
Post by: yonghan on August 13, 2014, 08:25:11 PM
Hi abolabo,i have found the solution.My mistake was the view template was default_html instead of default,so it doesn't able to look for the js and css.Right now it works.Thanks a lot.I was using the developer tool to create the extension.