Skip to main content

Using twitter bootstrap 5 icons

T

here are two (or more) ways of using icons from the famous CSS framework Twitter Bootstrap 5.

In this article we will show how to use icons in two different ways.

  • Using i tag and css class

  • Using Unicode in CSS


CSS Triangles

C

SS is an art and it needs some practice to master it.

In this section we explain a simpler way to make css based triangles. These triangles can be used for styling the edges. Using rotation css property might be extra helpful for styling.

  • HTML

  • CSS

  • Preview


Render API

T

his article describes and implements ( as examples ) the Render API.

You can render using three methods

1. Directly from render array

2. Using your own theme 

3. Using a mix of the above

Here is the source code files structure:

Render

  • 1. Directly from render array

  • 2. Using your own theme

  • 3. Using a mix of the above

  • Download source code


Developing CKEditor Plugins

C

KEditor is essential component of any CMS site, and Drupal is equally using it. Drupal provides a builtin CKEditor version (9.x) for open source CKEditor plugin 4.x. Sometimes there are custom functionality that is not available out of the box, but luckily the API can simply help you do it.

Although there are many free available plugins for CKEditor and a list is found here contributed modules.

There are basically three methods for creating for the integration of custom plugins.

  1. Method 1: Contributed modules and contributed plugins
  2. Method 2: Custom Modules & Contributed Plugins
  3. Method 3: Custom Modules & Custom Plugins
  • Method 1: Contributed modules and contributed plugins

  • Method 2: Custom Modules & Contributed Plugins

  • Method 3: Custom Modules & Custom Plugins


PHP Tips & Tricks

P

HP is one of the most popular web programming language. Its widely used due to its simplicity, power and higher speed. It got really famous after its version 5 which was more Object oriented programming (OOP), then a more robust and high performance version 7 was released which was quickly adopted too by the software development industry. Now a days the latest version 8 is widely becoming popular.

In this article we will present some tips and lesser explored features of PHP.

  • Install mail function

  • String output indentation on terminal