Discuss your project

Category

Partitech Sonata Extra Bundle

25 articles Page 2

Sonata Extra Bundle: Translation API

Sonata Extra Bundle exposes a translation API that delegates processing to a configurable provider. The application can thus translate a text into multiple languages while keeping the choice of provider at the configuration level. Understanding the translation API The translation API is a feature that leverages AI-powered translation services to provide automatic text translation. By integrating different translation providers, users can translate text into multiple languages without manual ...

Sonata Extra Bundle: generate a sitemap

Integration with PrestaSitemapBundle Sonata Extra integrates with PrestaSitemapBundle to generate a file sitemap.xml. The generation covers images, articles, and content pages of the application. The process is fully automated and includes support for multilingual links. Expand the sitemap Users wishing to further customize the sitemap, particularly by adding additional resources from Symfony controllers, are encouraged to consult the official documentation of the "PrestaSitemapBundle." This ...

Sonata Extra Bundle: managing multilingual administrations

The bundle provides a trait for admin classes and a trait for entities. Together, they add the fields and actions necessary for managing multiple language variants. The locales come from the Sonata Page sites. The administration then displays the available variants and allows linking the records of the same translation group. Screens Editing a translation on the selected site List of contents in the selected locale Creating a translation from the current variant Example of implementatio...

Sonata Extra Bundle: make Sonata Page multilingual

Overview The Sonata Extra Bundle enhances the SonataPageBundle by offering full multisite and multilingual management capabilities. This feature allows tracking and switching between page translations on the front-end and supports a flexible multisite strategy. Screens List view: Detailed view: Setting up a multisite with multiple languages Creation of multilingual websites Each site can support different regional settings. Use the following command to create the necessary sites: bin/c...

Sonata Extra Bundle: front-end resource management

Presentation The SonataExtra bundle introduces a flexible and powerful way to manage CSS and JavaScript resources in Sonata blocks. This feature allows developers to easily and efficiently include external CSS and JS files, as well as inline styles and scripts. Integration Efficient loading Assets (CSS/JS) are loaded on the page only if the corresponding block is used. This ensures efficient loading and avoids unnecessary overloads, which is particularly beneficial for performance optimizati...

Sonata Extra Bundle: language selector

Sonata Extra Bundle provides a feature-rich language selector, compatible with hybrid pages. This document describes the steps to activate and use the language selector in your Sonata application. Language selector configuration Integration with hybrid pages The language selector can integrate perfectly with your existing controllers and routes. Once you have a controller with a defined route, you can find and manage it in the Sonata page manager. The Sonata Extra Bundle allows customization...

Sonata Extra Bundle: configure a Content Security Policy

Introduction The Content Security Policy (CSP) is a browser security mechanism that helps reduce the risks of Cross-Site Scripting (XSS) and content injection. The Sonata-Extra bundle for Symfony provides an effective way to implement and manage CSP in your application. Understanding the Content Security Policy CSP is transmitted through a response header and allows you to control the resources your web page can load or execute. By specifying a list of trusted sources, you can reduce the ris...

Sonata Extra Bundle: blog module

Sonata Extra Bundle provides a blog module integrated into Sonata Page, with customizable routes and rendering adapted for multilingual sites. Integration of main roads Update of the main blog routes Integrate the pages of your site with the blog controller by executing the update-core-route order: php bin/console sonata:page:update-core-routes --site={id} Executing this command synchronizes the Sonata page with the following hybrid routes: Blog category: /blog-category/{category} Blog lab...

Sonata Extra Bundle: declare an admin with the AsAdmin attribute

Declare an admin service with #[AsAdmin] PHP attributes allow replacing a long declaration in services.yaml by a configuration placed directly on the admin class. The classic statement looked like this: app.admin.article: class: App\Admin\MyEntityAdmin arguments: [~, App\Entity\MyEntity, ~] tags: - { name: sonata.admin, manager_type: orm, label: "My Entity Admin" } calls: - [ setTranslationDomain, [partitech]] With auto-configuration, the tab...

Sonata Extra Bundle: validation workflow

Overview The Sonata Extra validation workflow records the actions performed in the administration, offering a complete overview of activities, involved resources, descriptions, and users. This feature ensures that actions are recorded but not applied immediately. They instead require validation by a user with the ROLE_APPROVE permission. Features Action Logging: Records each action but does not apply the changes immediately. Role-based approval: Actions require the approval of a user with R...

Sonata Extra Bundle: presentation

Sonata Extra Bundle completes Sonata Admin and Sonata Page with ready-to-integrate features: multilingual content, media, workflows, logging, editorial tools, and migration commands. Features Installation System requirements Installation guide User Guide Start Advanced features Configuration Troubleshooting FAQ Contact and support Setup Guides Layout Configuration: consult the guide Customize 404 and 500 pages: consult the guide Technical support partITech Designs, maintains, and mo...

Sonata Extra Bundle: features

Declare an administration with the PHP attribute #[AsAdmin] Place the admin service declaration directly on its class. Documentation: as-admin-attribute.md Code overview: Activity log in the administration The activity log feature in the Sonata Extra Bundle is designed to monitor and record all activities on the administration site. It provides a comprehensive view of the actions taken, the resources involved, descriptions of the activities, and the users who performed them. Display of ...