Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

include javascript and css for extension admin page

Started by yonghan, August 06, 2014, 02:31:33 AM

Previous topic - Next topic

yonghan

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

yonghan

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.

abolabo

Quote from: 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

hi.
Please create new topic about that. i'll answer.
Please, do not ask questions via PM that can be helpful for other people.
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

yonghan

Hi abolabo,sorry if i ask you via pm.I have found the solution just now.Thanks a lot.

abolabo

Quote from: 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

give me example of your code...
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

yonghan

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.

Forum Rules Code of conduct
AbanteCart.com 2010 -