Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OC 2.0.2.0 OCMOD path wildcard with braces #2872

Closed
jorimvanhove opened this issue Apr 6, 2015 · 2 comments
Closed

OC 2.0.2.0 OCMOD path wildcard with braces #2872

jorimvanhove opened this issue Apr 6, 2015 · 2 comments

Comments

@jorimvanhove
Copy link

It appears the OCMOD path wildcard functionality has changed.

Using <file path="catalog/view/theme/*/template/{account,checkout}/{register,guest}.tpl"> works in OC 2.0.1.1 but not in OC 2.0.2.0

No error message is generated in the OCMOD log file, the expected modifications do not show up in the log.

@danielkerr
Copy link
Member

the functionality has changed and is updated int he documentation, but it has never had error reporting for files that don't exist!

@jorimvanhove
Copy link
Author

Thanks for clearing that up.

The documentation in the github wiki still mentions this example:

Example:

Direct file path.

<file path="catalog/controller/common/home.php">
Using braces allows for selecting multiple files and not having to repeat the code operation multiple times.

<file path="system/{engine,library}/{action,loader,config,language}*.php">

From the 'modification.xml' file that ships with OC 2.0.2.0 I am deducing that it is still possible to modify multiple files at once, using this syntax:

<file path="system/engine/action.php,system/engine/loader.php,system/library/config.php,system/library/language.php">

So full file path with optional '*' wilcard, separated by comma's.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants