পৃষ্ঠাসমূহ

Search Your Article

CS

Pageviews

Showing posts with label Grav Basics Tutorial. Show all posts
Showing posts with label Grav Basics Tutorial. Show all posts

Monday, February 20, 2017

Grav - Overview

What is Grav?

Grav is a flat-file based content management system which doesn't use database to store the content instead it uses text file (.txt) or markdown (.md) file to store the content. The flat-file part specifically refers to the readable text and it handles the content in an easy way which can be simple for a developer.

Grav - Installation

Software Requirements for Grav

  • Web Server :
    • WAMP (Windows)
    • LAMP (Linux)
    • XAMP (Multi-platform)
    • MAMP (Macintosh)
    • Nginx
    • Microsoft IIS

Grav - Pages

In this chapter let us study about Grav Pages. Pages can be defined as building blocks of the site. Pages combine contents and navigations which makes easy even for inexperienced users.
First let us know how to create a simple page. All user contents will be stored under user/pages/ folder. There will be only one folder called 01.home.

Grav - Markdown Syntax

Markdown syntax is defined as writing plain text in an easy to read and easy to write format, which is later converted into HTML code. Symbols like (*) or (`) are used in markdown syntax. These symbols are used to bold, creating headers and organize your content.

Grav - Page Linking

In this chapter we will study about Page Linking in Grav. You can link from one page to another in a simple way and even remote pages in page linking. Grav has many responsive linking options. If you have used HTML to link the files before, then it's very easy to understand page linking in Grav.

Grav - Image Linking

In this chapter we will study about image linking in Grav. Grav allows you to link images from one page to another and even to remote pages. If you have linked the files using HTML, that would be very easy to understand image linking in Grav.

Grav - Media

Media files contain different types of display content such as images, videos, and many other files. Grav find and processes these files automatically to be used by any page. By using the built in functionality of the page you can access metadata and modify the media dynamically.

Grav - Modular Pages

Modular pages are difficult to understand at first but once you get to know about it, it would be very easy to work with. It enables to create a single page from its child pages. It has the ability to build complex one page layouts from modular content pages.

Grav - Multi Language

Multi–Language is defined as the use of different languages into your site. By using the following procedure you can learn how to use multi–languages in your Grav site.

Multi – Languages Basics

Basically Grav will needs an .md file for the representation of any page. When you enable the multi-language support, it will look for a file like default.en.md or default.fr.md.

Grav - Themes Basics

In this chapter lets us study about Themes Basics. Themes will control the looks of your Grav site. Themes in Grav are built with the powerful Twig Templating engine.

Content Pages & Twig Templates

The pages that you create, references a specific template file by name or by setting the template header variable for the page. Using the page name is advised for simpler maintenance.

Grav - Theme Tutorial

In this chapter let us study about Theme Tutorial. Let's create Grav theme taking an example.

Antimatter

When you install the Grav base package the default Antimatter theme is installed, which uses Nucleus (a simple base set of CSS styling). Nucleus is a lightweight CSS framework that contains essential CSS styling and HTML markup which gives a unique look and feel.

Grav - Twig Filters & Functions

In this chapter let's study about Twig Filters and Functions. Filters are used to format the data the way you want and output. Functions are used to generate contents.
Twig templates are text files that contain expressions and variables replaced by values. Twig uses three types of tags.

Grav - Theme Variables

In this chapter let's study about Theme Variables. Objects and variables are accessed from twig templates while designing your theme and these objects & variables are read and manipulated by Twig Templating Framework.

Grav - Asset Manager

In this chapter let's study about Asset Manager. Asset Manager was introduced in Grav 0.9.0 to unify the interface for adding and managing assets like JavaScript and CSS. Adding these assets from themes and plugins will provide advanced capabilities such as ordering and Asset Pipeline.

Grav - Theme Customization

In this chapter lets study about Theme Customization. There are several ways to customize your theme. Grav provides many features and few functionality to easily customize your theme.

Grav - Plugin Basics

Plugin is a piece of software that provides additional functionality which was not originally completed by Grav's core functionality. Grav Plugins can be uploaded to expand the functionality of the site. Plugins are used to make your work easier.

Grav - Plugin Tutorials

Plugin is a piece of software that provides additional functionality which was not originally completed by Grav's core functionality.
In this article, we are going to display random page using the random plugin. Before using this plugin, we will see some important points of random plugin.

Grav - Event Hooks

In this chapter, we will study about Event Hooks in Grav. In Plugins chapter you will see, the logic of plugin was included in two methods. The methods are onPluginsInitialized and onPageInitialized which is similar to event hooks.

Grav - Admin Introduction

Grav Administration Panel plugin is a web graphical user interface (GUI) for Grav. It can easily create and modify pages. It is an optional plugin and to work effectively Grav does not depend on this totally. The Admin provides limited views for easy usage of Grav.

Grav - Admin Dashboard

In this chapter will study about Administrative Panel Dashboard in Grav. The Dashboard acts as a nerve center of information for the Grav Administration Panel plugin. You can inspect the traffic statistics, create new backups, Grav updates, maintenance information, view the latest page updates and you can clear the Grav's cache with the help of this single page.