Download the PHP package netgen/toolbar without Composer
On this page you can find all versions of the php package netgen/toolbar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download netgen/toolbar
More information about netgen/toolbar
Files in netgen/toolbar
Package toolbar
Short Description Netgen Toolbar Bundle is an Ibexa bundle that implements a handy toolbar on your site with functions most used by the editors.
License GPL-2.0-only
Homepage https://github.com/netgen/toolbar
Informations about the package toolbar
Installation
To add the Netgen Toolbar to your Symfony project, use Composer for easy installation. Run the following command:
Usage
Configuration
By default, the toolbar uses the Ibexa admin siteaccess configured by the %ngsite.admin_siteaccess_name%
parameter
available in Netgen Media Site. If you need some more control over the admin siteaccess which will be used, you can
use the configuration similar to the example below:
All of these configuration options are optional.
Integration into templates
To use the Netgen Toolbar in your project, include it in your pagelayout template, directly after the opening <body>
tag. Here is a basic example:
Adjusting for additional elements
If your layout includes elements like a sticky header that should be offset by the toolbar's height, you can specify additional CSS selectors. By default, only #page
is adjusted. Here's how to include a sticky header in the offset calculation:
To specify that no elements should be offset, pass an empty array:
Custom adjustments using CSS
For additional custom adjustments, a CSS variable --ngtoolbar-height
is provided and can be used throughout your project's CSS as needed.
How to mark elements that should be editable?
Each component or block item that is supposed to be editable needs to have 2 data parameters with content ID and location ID and one unique data parameter that indicates if it's a component or a block item.
or
Helper macro for data parameters
The bundle includes a helper macros for adding necessary data parameters to components and block items. First, import the macro into your template:
Then, use it as follows:
Block item view types
Rendered HTML:
Components
Rendered HTML:
Visibility conditions
The toolbar is displayed only to authenticated users who have the ngtoolbar/use
Ibexa policy, ensuring that only authorized users can access toolbar functionalities.
Building the project assets (for development purposes)
The Netgen Toolbar comes with its own set of assets. To build these assets for development or production environments, use the following commands: