Giter Club home page Giter Club logo

custom_field_formatter's Introduction

Custom Text Field Formatters

The Custom Formatters module allows users to select three Text Field Formatters.

Features

  • Three formatter types:
    • ROT13
      Implement formatters by Rotating text character by 13.

    • Slugify
      Add Slug in text.

    • Tooltip
      Add tooltip on text.

Installation

Dependencies

Tasks

  1. Download the qTip2 library from https://github.com/qTip2/qTip2

  2. Unzip the file and rename the folder to "qTip2" (pay attention to the case of the letters)

  3. Put the folder in one of the following places relative to drupal root.

    • libraries
    • profiles/PROFILE-NAME/libraries
    • sites/all/libraries
    • sites/SITE-NAME/libraries
  4. The following files are required (last file is required for javascript debugging)

    • jquery.qtip.min.js
    • jquery.qtip.min.css
  5. Ensure you have a valid path similar to this one for all files

    • Ex: libraries/qTip2/dist/jquery.qtip.min.js
  6. Adding following line at end of returning array in file vendor/composer/autoload_psr4.php

    • 'Cocur\Slugify\' => array($vendorDir . '/cocur/slugify/src'),

Composer

Composer may be used to download the library as follows...

  1. Open a command line terminal and navigate to the same directory as your composer.json file and run composer require cocur/slugify

That's it!

custom_field_formatter's People

Contributors

k-zafar avatar

Watchers

 avatar

Forkers

darkopet

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.