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

plugin dir config value and install plugins that are in sub dirs #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nfourtythree
Copy link

I had an issue with some plugins as in their respective repos they were stored in a sub directory.

Take Pixel & Tonic's Contact Form as an example. The actual plugin folder is in a sub directory and therefore didn't add properly.

I added a param to the CRAFT_PLUGINS section called subDirectory (could probably do with a better name). When this is set to true it will move out the directory to avoid the above stated issue.

This could be a whole lot more clever and actually test for the existence of the directory, therefore negating the need for a flag but this was simply a first pass to get around the issue in the short term.

During the process I also added CRAFT_PLUGINS_DIRECTORY option as it removed the need to have information repeated for every plugin. This also lead me to rename the path option to dir as then that made more sense after the other changes.

Again, this was a relatively quick first pass. So there is plenty of room for improvement, but hopefully it, at bare minimum, highlight the issue I was trying to solve

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

Successfully merging this pull request may close these issues.

1 participant