Giter VIP home page Giter VIP logo

d7-clf-button's Introduction

UBC Button Link Field Formatter

This module provides a custom field formatter that allows you to render link fields as UBC CLF buttons.

This module works by rendering a Link Field's tag with the addition of CLF button classes. It does not provide any CSS.

To use this module

  • Activate in modules in UBC IT Web Services package
  • Only available for Link fields

Applying the field format to your field

  1. While editing content type to can apply UBC CLF Button field formatting to your Link Field in the Manage Display
  2. When adding Link field to view - you can apply UBC CLF Button field formatting in the field setting

Using Field Formatter

There are 3 settings for the formatter

  • Select list that provides basic list of out-of-the-box button styles, plus 1 external link option
  • Text field to add your own class, these can be added in addition to any class you have selected from the select list
  • Select list for target options

Default button styles provided are

   Primary =>       'btn btn-primary'
   Info =>          'btn btn-info'
   Success =>       'btn btn-success'
   Warning =>       'btn btn-warning'
   Danger =>        'btn btn-danger'
   Inverse =>       'btn btn-inverse'
   Link =>          'btn btn-link'
   External Link =>  'icon-external-link'

d7-clf-button's People

Contributors

veades avatar

Watchers

 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.