PHPackages                             netgen/toolbar - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. netgen/toolbar

ActiveIbexa-bundle[Utility &amp; Helpers](/categories/utility)

netgen/toolbar
==============

Netgen Toolbar Bundle is an Ibexa bundle that implements a handy toolbar on your site with functions most used by the editors.

2.0.0(6mo ago)097711GPL-2.0-onlyPHPPHP ^8.4

Since Apr 26Pushed 6mo ago7 watchersCompare

[ Source](https://github.com/netgen/toolbar)[ Packagist](https://packagist.org/packages/netgen/toolbar)[ Docs](https://github.com/netgen/toolbar)[ RSS](/packages/netgen-toolbar/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (5)Used By (1)

Installation
------------

[](#installation)

To add the Netgen Toolbar to your Symfony project, use Composer for easy installation. Run the following command:

```
composer require netgen/toolbar
```

Usage
-----

[](#usage)

### Configuration

[](#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:

```
netgen_toolbar:
    # Specifies the default admin siteaccess name, used when nothing else is configured
    default_admin_site_access: my_admin

    # Specifies the legacy siteaccess name, used when Toolbar detects the usage of Netgen Admin UI
    legacy_admin_site_access: legacy_admin

    # Specifies the map between siteaccesses/groups and admin siteaccess names to be used when current siteaccess
    # matches one of the keys in this list. In this list, siteaccesses have priority over groups.
    admin_site_access_mapping:
        fh_eng: fh_admin
        bold_eng: bold_admin
        bold_group: bold_admin
```

All of these configuration options are optional.

### Integration into templates

[](#integration-into-templates)

To use the Netgen Toolbar in your project, include it in your pagelayout template, directly after the opening `` tag. Here is a basic example:

```
    {% include "@NetgenToolbar/ngtoolbar.html.twig" %}
```

### Adjusting for additional elements

[](#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:

```
    {% include "@NetgenToolbar/ngtoolbar.html.twig" with {
        offset_selectors: [".site-header-sticky", "#page"]
    } %}
```

To specify that no elements should be offset, pass an empty array:

```
    {% include "@NetgenToolbar/ngtoolbar.html.twig" with {
        offset_selectors: []
    } %}
```

Custom adjustments using CSS
----------------------------

[](#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?
---------------------------------------------

[](#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

[](#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:

```
    {% import "@NetgenToolbar/macros.html.twig" as toolbar_macros %}
```

Then, use it as follows:

#### Block item view types

[](#block-item-view-types)

```

```

Rendered HTML:

```

```

#### Components

[](#components)

```

```

Rendered HTML:

```

```

Visibility conditions
---------------------

[](#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)
------------------------------------------------------

[](#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:

### For development

[](#for-development)

```
    pnpm run dev
```

### For production

[](#for-production)

```
    pnpm run prod
```

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance66

Regular maintenance activity

Popularity17

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 60.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~197 days

Total

4

Last Release

206d ago

Major Versions

1.1.0 → 2.0.02025-12-09

PHP version history (2 changes)1.0.0PHP ^8.1

2.0.0PHP ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/362286?v=4)[Edi Modrić](/maintainers/emodric)[@emodric](https://github.com/emodric)

![](https://avatars.githubusercontent.com/u/594589?v=4)[Netgen](/maintainers/netgen)[@netgen](https://github.com/netgen)

---

Top Contributors

[![markosandalj](https://avatars.githubusercontent.com/u/79453650?v=4)](https://github.com/markosandalj "markosandalj (43 commits)")[![emodric](https://avatars.githubusercontent.com/u/362286?v=4)](https://github.com/emodric "emodric (28 commits)")

---

Tags

toolbarnetgenibexa

### Embed Badge

![Health badge](/badges/netgen-toolbar/health.svg)

```
[![Health](https://phpackages.com/badges/netgen-toolbar/health.svg)](https://phpackages.com/packages/netgen-toolbar)
```

###  Alternatives

[netgen/tagsbundle

Netgen Tags Bundle is an Ibexa DXP bundle for taxonomy management and easier classification of content, providing more functionality for tagging content than ibexa\_keyword field type included in Ibexa core.

49468.3k28](/packages/netgen-tagsbundle)[netgen/enhanced-selection-bundle

Netgen Enhanced Selection bundle for Ibexa Platform

19103.0k5](/packages/netgen-enhanced-selection-bundle)[novactive/ezseobundle

Novactive eZ SEO Bundle is an Ibexa Platform bundle for SEO simplications. metas, sitemaps, robots.txt, etc.

29259.4k3](/packages/novactive-ezseobundle)[digital-creative/icon-action-toolbar

Allows you to update a single column of a resource all at once.

2628.7k](/packages/digital-creative-icon-action-toolbar)[netgen/information-collection-bundle

Information collection alike feature for Ibexa Platform

1945.8k11](/packages/netgen-information-collection-bundle)[netgen/remote-media-bundle

Remote media field type implementation

189.6k6](/packages/netgen-remote-media-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
