overriding custom packages?
PermalinkI've been hacking packages to make it work but when I update them, my hacks are of course overridden themselves and I have to do it all over again. I was wondering if there's a more elegant way of doing this?
thanks in advance,
mario
I think you just want to duplicate exactly what's inside the package's "blocks" directory into your root "blocks" directory. That works for me with other packages.
As for overriding files outside the package's "blocks" directory, I'd like to know how to do that as well. I have the Calendar add-on, and it's not clear how to override the calendar.css stylesheet which resides in a folder in the package's root as opposed to being inside the "blocks" folder.
Anyone know how to go about this?
-Steve
:-/
-Steve
As for overriding the block itself, I'm still not clear on what the intended behavior is, but simply copying the block from the package to the root "blocks" directory doesn't seem to work. I also encountered an issue with an Ajax call to a tool causing a fatal error. I described what I learned in this post…
http://www.concrete5.org/community/forums/customizing_c5/blocks-chi...
-Steve
http://www.concrete5.org/documentation/developers/blocks/overview...
and I think it states that it's possible to do overrides using the root blocks folder.
I've tried doing this but to no avail.
I'm attempting to do an override on the core_commerce package but neither putting the info into something like this:
/blocks/packages/core_commerce/blocks/product_list/controller.php
or
/blocks/core_commerce/blocks/product_list/controller.php
appears to be overriding the package.
It does work using the exact same structure when I hack the actual file in the packages directory, so I know I'm targeting the right file.
Ideally, I'd like to override other files outside of the package block directory but I thought I'd try to override as described in the Documentation section.
Is this behavior that only works in 5.4 or can it work in 5.3.3.1 as well? Is there another way to do this? Is my pathing off?