Widget api

Widget allows you to define additional theme/module widgets that can be exposed as blocks. The widgets are defined from a yml file and are stored as configuration.

Widget concept

The idea behind "Widget" is to allow the front end to create reusable components that are easily configurable on the back end.

A widget can be:
- A simple header image with text in front
- A simple map
- A profile box
- ..

Downloads

WP-like admin

Make the Drupal admin panel look a little bit like Wordpress.
This is useful for showing the aggregated sidebar menu for content managers and using the admin menu (or smth) for admins.

Downloads

wp like admin

Closed due to copyrights infringement.
——
Make the Drupal admin panel look a little bit like Wordpress.
This is useful for showing the aggregated sidebar menu for content managers and using the admin menu (or smth) for admins.

Downloads

Display role

'Roles' field with 'Picture' and 'Member for' fields on admin/people/accounts/display form

Easily show users' assigned role or roles on their profile pages by using this module.

It makes a list of user roles available for site administrators to choose to show as one of the display fields available on user profiles.

Enable the module and go to People » Account settings » Manage display and drag "Roles" to where you would like it to display relative to the order of other items, like "Picture" and "Member for", available on this form that, as it explains, "lets administrators configure how fields should be displayed when rendering a user profile page."

Downloads

Twig Renderable

Provides a Twig extension to work with render arrays.

Function

  • will_have_output('path', 'to', 'render', 'array')

Filters

  • add_class(string|array $class)
  • merge_attributes(array|\Drupal\Core\Template\Attribute $attributes)

Downloads

Twig Slugify

Very simple module that provides a new Twig filter to create a slug from a string in a template.

Requirements

Install Composer

Pages

Subscribe with RSS Subscribe to RSS - Theme Enhancements