Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Drupal 8

You're reading from   Learning Drupal 8 Create complex websites quickly and easily using the building blocks of Drupal 8, the most powerful version of Drupal yet

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher Packt
ISBN-13 9781782168751
Length 328 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Nick Abbott Nick Abbott
Author Profile Icon Nick Abbott
Nick Abbott
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Introduction 2. Installation FREE CHAPTER 3. Basic Concepts 4. Getting Started with the UI 5. Basic Content 6. Structure 7. Advanced Content 8. Configuration 9. Users and Access Control 10. Optional Features 11. Reports 12. Extending Drupal 13. Theming Drupal 14. Getting Support Index

Statistics


The Statistics module allows you to collect data about the visitors to your site. When the module is active, the number of times each piece of content is viewed is counted.

Enable the Statistics module now, and you will see a configuration screen available by navigating to Configuration | System | Statistics (admin/config/system/statistics):

Enable the collection of stats by ticking the Count content views option:

You'll then have access to a new block, which is initially entitled Popular content.

Visit Manage | Structure | Block layout and place the block.

Click on the Place block button now:

Choose to place the Popular content block.

This block can be configured to show a list of content that is:

  • Most popular for the current day

  • Most popular for all time (since the module was enabled)

  • Most recently viewed

There are multiple sets of options available in this screen, but we'll only set the Number of day's top views to display for now, and we'll place the block in the Sidebar second region...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image