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.408 seconds

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started