Giter VIP home page Giter VIP logo

menu_item_extras's Introduction

CONTENTS OF THIS FILE

  • Introduction
  • Requirements
  • Installation
  • Configuration
  • FAQ
  • Maintainers

INTRODUCTION

Menu Item Extras provides extras for the Menu Items. Version 8.x-1.x adds the Body textarea field only.

REQUIREMENTS

This module requires the following modules:

  • Block (Drupal core)
  • Text (Drupal core)
  • Menu link content (Drupal core)

INSTALLATION:

  1. Download and enable as normal module;
  2. Go to the menus list and edit menu which you want to have the extras.

CONFIGURATION

  • You can enable/disable extras per menu, by default we enable extras for the Main Menu. When extras is disabled, all data from the fields are removed;
  • We added more suggestions for menus in regions. You could change menu template per region. Like menu--extras--main--header.html.twig, menu--extras--main--footer.html.twig.

UNINSTALLING:

  1. Disable extras for all menus otherwise, you will not be able to uninstall it;
  2. Uninstall as a normal module.

FAQ

  1. How to get a field value in the template?

You can use entity parameter which is passed to the menu-levels.html.twig

    {% if item.entity.field_test.value == '1' %}
      {{ rendered_content }}
    {% endif %}
  1. Support for REST API We do not support it out of the box, check the issue https://www.drupal.org/project/menu_item_extras/issues/2959787

MAINTAINERS

menu_item_extras's People

Contributors

akhomy avatar ivegas avatar ozin7 avatar bheptinh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.