Override package files
Is there a way to add or edit a file at a package without loosing it after update package?
My question was about both 5.7 and 5.6, but specifically i tried it for 5.7.
I have this package file:
I've copied it to:
+ nothing happens.
Fixed. Caching. doh.
Could someone please give me the FULL PATH where I should put "blue.css" for the purpose of making changes.
Do I need to make any changes in any other files to make this work? If anybody can explain this in really simple times they will earn my undying gratitude.
And then to override the CSS file, place your custom copy here:
Clear your cache + that should do the trick.
I apologize. I got myself confused there. So yes, the path is, as you say it should be, root/packages/jb_megamenu......etc
I have tried doing as you say, but it's not having any effect. I'm sure I'm doing something very obvious very wrong, but I'll be a monkey's uncle if I can figure it out. I'll keep trying.
I have had a look athttp://documentation.concrete5.org/tutorials/override-almost-any-co... It's rather all Greek to me, but In there it makes mention of an "Override Class Name". I'm wondering if that has any significance for my problem.
If I copy the entire set of files and folders under jb_megamenu to the applications/blocks directory and then clear the cache, I get a full-screen error message headed "Class '\Application\Block\JbMegamenu\Controller' not found ".
From this fact I deduce that,
1/ I'm putting them in the right place and
2/ something else needs to be changed, perhaps in jb_megamenu/controller.php
Wish I understood the coding side of things a whole lot better.
You wouldn't need to place the entire file set to the blocks directory - just the part that deals with the actual block, and in your case, the only actual file that you need to include is the .css file that you want to override - It just neds to be in the correct directory structure.
If you were willing to PM me with access details to your site(for FTP + concrete install), I could logon and take a look?
Many thanks for your kind offer. I will definitely keep it in mind. Let me play around a bit more first with some other packages.
From: concrete5 Community [mailto:[email protected]]
Sent: Thursday, 24 March 2016 8:04 PM
To: [email protected]
Subject: Override package files : Chit-Chat