Can A Package Override A Core Library?

Permalink
In particular, I want to override

concrete/core/libraries/item_list.php

in a package.

Is it as simple as making a copy to edit at

packages/brp/libraries/item_list.php

Or is there another/better way?

bobrocke
 
JohntheFish replied on at Permalink Reply
JohntheFish
From a package controller, there are 2 approaches:

1. There is a method 'override core by package' (I forget the exact name, but searching the forums and howtos on that will get you to it).

2. Copy a file into the root override during package install (which can also be used to override other packages)

Both approaches obviously need copious safety checks to make sure they are not breaking another override and hence giving unintended consequences.

Both will automatically lead to a 'black' classification for any such package in the marketplace, it it gets accepted to the marketplace at all. Many of the 'Related Projects' on http://www.concrete5.org/developers/open-source/... started out as marketplace submissions that were just a bit too black.
JohntheFish replied on at Permalink Reply
JohntheFish

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.