Author Topic: include javascript and css for extension admin page  (Read 4036 times)

yonghan

  • Guest
include javascript and css for extension admin page
« 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
« Last Edit: August 06, 2014, 02:38:07 AM by yonghan »

yonghan

  • Guest
Re: include javascript and css for extension admin page
« Reply #1 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.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1783
  • Karma: +248/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: include javascript and css for extension admin page
« Reply #2 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.
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

yonghan

  • Guest
Re: include javascript and css for extension admin page
« Reply #3 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.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1783
  • Karma: +248/-11
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: include javascript and css for extension admin page
« Reply #4 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...
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

yonghan

  • Guest
Re: include javascript and css for extension admin page
« Reply #5 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.

 

Powered by SMFPacks Social Login Mod