Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Component theme 21 Mar 2014 16:27 #12331

  • JuJ
  • JuJ's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 14
  • Thank you received: 3
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.

Please Log in or Create an account to join the conversation.

Component theme 22 Mar 2014 09:28 #12343

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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 following user(s) said Thank You: JuJ

Please Log in or Create an account to join the conversation.

Component theme 22 Mar 2014 13:28 #12351

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

BTW, are you french? (je suis de Nantes) ;)

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.076 seconds

For starters it's just so easy to design an app in a way that I'm used to i.e. database first then views followed by customization. The fork system is pure brilliance from a developer standpoint as I can override things and still add and update my projects with minimal effort! Truly amazing to be able to build components in Joomla using incremental refinement without having to do everything by hand. Thanks for the great tool! I am so much more productive now than ever and I can't imagine building components any other way!!!!
Dave (Forum)

Get Started