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

[Feature] Add PageExportController to bundle #1

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

Conversation

mike4git
Copy link

By introducing this controller and other stuff we have a contextual menu for Documents:

image

config/pimcore/routing.yml Outdated Show resolved Hide resolved
@@ -0,0 +1,5 @@
page_export:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing bundle prefix.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

???

Copy link
Member

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

config/pimcore/routing.yml Outdated Show resolved Hide resolved
Comment on lines 1 to 2
// /Resources/public/js/exportPage.js

Copy link
Member

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).

Suggested change
// /Resources/public/js/exportPage.js

public/js/pimcore/exportPage.js Outdated Show resolved Hide resolved
src/EventListener/PimcoreAdminListener.php Outdated Show resolved Hide resolved
src/EventListener/PimcoreAdminListener.php Outdated Show resolved Hide resolved
public/js/pimcore/exportPage.js Outdated Show resolved Hide resolved
src/EventListener/PimcoreAdminListener.php Outdated Show resolved Hide resolved
Comment on lines 44 to 16
$event->setPaths(array_merge(
$event->getPaths(),
[
'/bundles/neustatrinitypimcore/js/startup.js',
'/bundles/neustatrinitypimcore/js/exportPage.js',
],
));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$event->setPaths(array_merge(
$event->getPaths(),
[
'/bundles/neustatrinitypimcore/js/startup.js',
'/bundles/neustatrinitypimcore/js/exportPage.js',
],
));
$event->addPaths([
'/bundles/neustapimcoreimportexport/js/exportPage.js',
]);

Copy link
Author

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.

Copy link
Member

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.

@jdreesen jdreesen changed the title [Feature] Add PageExportController to bundle [Feature] Add PageExportController to bundle Jan 28, 2025
@mike4git mike4git force-pushed the feature/export-controller branch 7 times, most recently from 1f21dff to 9315278 Compare January 29, 2025 11:55
@jdreesen
Copy link
Member

Please also take a look at the hidden annotations:

image

@mike4git mike4git force-pushed the feature/export-controller branch from 9315278 to 71c9c41 Compare January 31, 2025 08:10
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.

2 participants