Welcome, Guest
Username: Password: Remember me

TOPIC: Component theme

Component theme 21 Mar 2014 16:27 #12331

  • JuJ
  • JuJ's Avatar
  • Offline
  • New Member
  • Posts: 14
  • Thank you received: 3
  • Karma: 0
Hi there,

I will install my j-cook component on my site, which has the kallyas template.
But I don't want to use the Kallyas template for my component, I would like to install and adapt another theme, just for my component.
So, in this case, I guess I won't use the override capabilities of Joomla...

In the other theme, which is an html one, I have some files and folders, like css, js and so on...
I downloaded the com_hellomyworld demo component and installed it on a fresh Kallyas powered Joomla 2.5 and installed the component.
I would like to test the customization of the component, just to see how it works.

But I have 2 questions:
  1. Where should I paste the css, js... folders and files? Not in template/Kallyas/... because I think this is the override.
    Should I paste them in component/com_hellomyworld/ folder?
  2. I had a look to the components/com_hellomyworld/views/visits/tmpl/default.php and I think I'll have to add the required calls of the css and js files. But I don't see any of these calls in this files, so where should I declare them?

Thanks a lot for your help and answers.
Best.
The administrator has disabled public write access.

Component theme 22 Mar 2014 09:28 #12343

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
The css classes are loaded in helper::headerDeclarations()

Yes, it is better to write your custom CSS in the component css folder.

Cook is not standard there. css should be in "assets" folder.

Also, I think there is a loading order problem I often experimented difficulties for loading the component css as last.
The template seems to override the component because it is loaded after.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: JuJ

Component theme 22 Mar 2014 13:28 #12351

  • JuJ
  • JuJ's Avatar
  • Offline
  • New Member
  • Posts: 14
  • Thank you received: 3
  • Karma: 0
Ok, thanks a lot, Chief! I'll try this today.

BTW, are you french? (je suis de Nantes) ;)
The administrator has disabled public write access.
Time to create page: 0.114 seconds

Get Started