DEV Community

Cover image for What is view component?
elanatframework
elanatframework

Posted on

What is view component?

This article is about the view component in Elanat; This is different from the views module in Drupal. The fetch component in Elanat is similar to the views module in Drupal, and in a detailed article, both of them have been compared.
Link to the article comparing the fetch component in Elanat and the views module in Drupal:
https://dev.to/elanatframework/fetch-component-vs-view-module-13k8

The view component is a powerful tool for you to display any part of your website as you like. This component exists in the Elanat core and is located in the appearance system section by default. Each view is activated based on the path parameters and query string you want.

You can create a view using the following match types:

  • Full match
  • None query
  • All query
  • Exist
  • Start by
  • End by
  • Regex

Then you can do the following:

  • Block the location you want from being created and displayed
  • Connect with styles that support views and customize text colors and background colors of styles
  • Choose a style and template for the view
  • Add whatever you want in the head section of HTML pages

For example, you can add a image to the background for some categories, and in another example, remove the left and right locations from the main page.

This component is compatible with styles, and if you use a style that supports common and natural colors, you can change the default colors of styles on the same style.
Common and natural colors include the following:

  • view common light text color
  • view common middle text color
  • view common dark text color
  • view natural light text color
  • view natural middle text color
  • view natural dark text color
  • view common light background color
  • view common middle background color
  • view common dark background color
  • view natural light background color
  • view natural middle background color
  • view natural dark background color

By using the view component in Elanat, you can give the desired display style to different parts of the website and color different parts with different styles.

We really liked to compare the view component in Elanat with similar plugins of other systems; but the lack of time made our research go nowhere and we did not find a similar case; you can send similar items to us as a comment in the section below.

Top comments (0)