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

Extension files can be located in the App directory #11

Closed
4 of 5 tasks
jasonvarga opened this issue Dec 7, 2017 · 3 comments
Closed
4 of 5 tasks

Extension files can be located in the App directory #11

jasonvarga opened this issue Dec 7, 2017 · 3 comments
Assignees

Comments

@jasonvarga
Copy link
Member

jasonvarga commented Dec 7, 2017

To extend Statamic in v2 you needed to create an addon or make "site helpers".

In v3, it makes sense to just put stuff in your app directory like you would with Laravel.

We should just allow users to place these files in an appropriate spot.

/
|-- app/
|    |-- Tags/
|    |     |-- Foo.php    -> {{ foo }}, {{ foo:bar }}, etc
|    |     |-- Bar.php    -> {{ bar }}, {{ bar:baz }}, etc
|    |-- Modifiers/
|          |-- Foo.php    -> {{ var | foo }}
|          |-- Bar.php    -> {{ var | bar }}
|    |-- Fieldtypes/
|          |-- Example.php
|    |-- Filters/
|          |-- Example.php
|    |-- Widgets/
|          |-- Example.php
|-- public/
|-- artisan
  • Tags
  • Modifiers
  • Fieldtypes
  • Filters
  • Widget

We dont need to port these since they are just Laravel things now:

  • Service Provider
  • Controller
  • Command
  • Scheduled Task
  • Event Listener
@jesseleite
Copy link
Member

We dont need to port these since they are just Laravel things now:

  • Service Provider
  • Controller
  • Command
  • Scheduled Task
  • Event Listener

We'll have to remember to instruct them to laravel-ify these things in our v2 -> v3 upgrade guide. Maybe we could automate some of it for them?

@jesseleite
Copy link
Member

This is all done, just needs some more thought on how we're going to handle the wiring of vue components on Fieldtypes.

@jasonvarga
Copy link
Member Author

Closing this, it's done enough. The JS wiring up can be a separate issue.

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