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

This is what you call a component builder. I was able to master using this in a very short time and the resulting component works like a charm. Not just a basic component builder but a fully working component builder with forms fields tables all ready to go. You can make the list and item views to display in the front and back end. Also there is a great forum just starting to evolve and I'm sure this will grow very rapidly when you all realise how good this tool is.
Kevin (JED)

         

Get Started