-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Feature] Add PageExportController
to bundle
#1
base: main
Are you sure you want to change the base?
Conversation
config/pimcore/routing.yml
Outdated
@@ -0,0 +1,5 @@ | |||
page_export: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing bundle prefix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be: neusta_pimcore_import_export_page_export
public/js/pimcore/exportPage.js
Outdated
// /Resources/public/js/exportPage.js | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Useless comment (with wrong path).
// /Resources/public/js/exportPage.js |
$event->setPaths(array_merge( | ||
$event->getPaths(), | ||
[ | ||
'/bundles/neustatrinitypimcore/js/startup.js', | ||
'/bundles/neustatrinitypimcore/js/exportPage.js', | ||
], | ||
)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$event->setPaths(array_merge( | |
$event->getPaths(), | |
[ | |
'/bundles/neustatrinitypimcore/js/startup.js', | |
'/bundles/neustatrinitypimcore/js/exportPage.js', | |
], | |
)); | |
$event->addPaths([ | |
'/bundles/neustapimcoreimportexport/js/exportPage.js', | |
]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made a lot more changes to the Listener because most of the things we do not need and the directory naming was incorrect, too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But that doesn't mean we don't want this change, too.
PageExportController
to bundle
1f21dff
to
9315278
Compare
9315278
to
71c9c41
Compare
By introducing this controller and other stuff we have a contextual menu for Documents: