Nesting in SASS

Upload Image
Nesting

Nesting is quite common in programming

When we writing HTML or any other programming

we've probably noticed that it has a clear nested and visual hierarchy. But in CSS, Nesting

is not allowed.

Look these code I written in CSS

Test0 image

Operations in SASS

Upload Image
Operations in SASS

SassScript supports the many types of operations such as Number Operations, Color Operations, String Operations, Boolean Operations, etc...

Lets see the example of each operation and learn how to use it in files...

Number Operations

SassScript supports the standard arithmetic operations on numbers (addition +, subtraction -, multiplication *, division /, and modulo %).

See the code i'm written in SCSS

Views Exposed filters as a Block in Drupal

Upload Image
Expose logo

The expose functionality provides the user to filter the result according to our choice.

Step 1: Create a views page with the fields you wish to display.

Step 2: Add the filter criteria fields

You add the filter criteria fields like ("title","type") etc. according to you want to filter the result. Suppose you want to expose a filter that allows users to filter result accroding to nid , so for your filter criteria, you'll check Content: Nid, and click "Apply".

Call view in template in Drupal

Upload Image
calling of view in template

The Views module is the most downloaded contribution on drupal.org. It is a powerful list-maker that not only provides a GUI for creating a query but also gives you options on how you want to display your data. This is an introductory tutorial to the world of Views and how you can use this great module to create listings of content.

<?php print views_embed_view('blog_posts', 'block'); ?>