What is Drupal?
Drupal is an open source Content Management System and used for Complex websites. It has great flexibility of functionality and modularity. We can design our website using the core of Drupal and we can manage content on pages easily. Nowadays Drupal is used for e-commerce stores, blogging, business sites, college and universities websites.
What are the main features of Drupal?
Main features of Drupal are listed as:
- Open Source
- Flexible and Robust CMS in comparison to Others.
- Provide Security layer.
- Easy to manage Content.
- Fields and Blocks that are the most flexible assets of Drupal.
How Drupal is different from other CMSs available as opensource?
Drupal has a complex structure, and a heavy core so it is not suitable for small websites. It is secure than any other CMS. It has a great functionality to manage content and visibility. It provides a robust user management module in core.
What is the .info file in a Drupal theme?
This is the configuration setting of the Drupal theme. A .info file is a static content and settings are written here as key=value format. Each line has a different key and value for that. Metadata, style sheets, JavaScripts, block regions and more can be defined here. It is used for theme and not for the module.
What is a theme?
The theme is a collection of files to construct the layout. A Drupal theme contains following important elements:
- Configuration file (.info)
- Templates file (.tpl.php)
- Stylesheets
- sub-themes
What is Module in Drupal?
A module in Drupal is a collection of PHP files to provide some additional functionality to Drupal site. A module can access all the core functions and variables of the Drupal.
What is Block?
Blocks are the layout elements. A block defines that what particular content should be displayed at what place in the layout. It is a box in the content area.
How can we add modules to the core?
We can upload compressed files of the module or we can directly import from the remote URL.
What are the regions?
Regions are the layers defined by theme to represent the content area. For example footer, sidebar, navigation etc.
What is a node?
All the contents are treated as a node in Drupal. A node is a chunk of content. We create content, custom content using node module.
What is taxonomy?
Taxonomy is used to organize Metadata, tags, categories in Drupal. It a feature of Drupal core. It is used to categorize the content of the website. We can use tags to connect the content.
What is sub-theme?
A sub-theme is child theme. It inherits the resources of the Parent theme. It can be chained. A sub-theme can be a child of another sub-theme. All the styles sheets and javascript inherited by sub-theme.
What is service.yml?
service.yml placed in the root directory in and all the services are defined here.
What are properties of services?
Services may have following properties:
- abstract
- alias
- tag
- arguments
- calls
- class
- factory
- file
- public
- scope
What is settings.php?
This is the global settings of the site.Tthe database, URL structure, salt, encryption etc all the variables are defined here.
What is clean URL?
SEO friendly URLs in Drupal is clean URL.We can enable or disable it.
How can we manage clean URL in Drupal?
We can enable or disable clean URLs by following steps:
- navigate to Administer > Configuration > Search and metadata > Clean URLs
- Wait for the automated Clean URLs test to run.
- Check or uncheck the Enable clean URLs checkbox
- Click “Save configuration”
What is URL alias?
We can add our custom URL in place of “node”. It makes URL clean and SEO friendly.
What does cron do in Drupal?
Cron deletes temporary files and trigger the search module to index the content on the site.It pings modules to get updates.
What is Report in Drupal?
Reports modules collect the site health report and logs.It does the following task:
- Recent log entries
- Top ‘access denied’ errors
- Top ‘page not found’ error
- Available updates
- Status Report
- Site statistics
What is the status report?
Here you can find a short overview of your site’s parameters as well as any problems detected with your installation.
What is Recent Log entries?
The Database Logging module logs system events in the Drupal database. Monitor your site or debug site problems on this page.
What are the content types in Drupal?
Contents are categorised into 2 basic categories:
- Basic pages
- Articles
What is Basic page content?
Basic Page is the landing pages for a site, that rarely change. If we are creating About us, Contact us, Services, Team pages then we have to choose Basic Page type content.
What is Article type content?
Article type is a regular blog post on the site. We can select Article if we are writing an article or blog posts related to latest updates, hobbies etc.