Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Drupal for Education and E-Learning - Second Edition
  • Table Of Contents Toc
  • Feedback & Rating feedback
Drupal for Education and E-Learning - Second Edition

Drupal for Education and E-Learning - Second Edition - Second Edition

4.5 (2)
close
close
Drupal for Education and E-Learning - Second Edition

Drupal for Education and E-Learning - Second Edition

4.5 (2)

Overview of this book

As social networks become more popular, their role in the classroom has come under scrutiny. Drupal offers a wide variety of useful tools for educators. Within a single Drupal site, you can set up social bookmarking, podcasting, video hosting, formal and informal groups, rich user profiles, and other features commonly associated with social web communities. "Drupal for Education and E-Learning - Second Edition" teaches you how to create your own social networking site to advance teaching and learning goals in the classroom, while giving you complete control over features and access. Communicate with students, share learning resources, and track assignments through simple tasks with this hands-on guide.In this book you will learn to install and configure the default Drupal distribution and then extend it to include blogs, bookmarks, a media sharing platform, and discussion forums. The book also covers how to organize your site to easily track student work on the site, and how to control who has access to that information. Additionally, it teaches you how to make the site easy to use, how to maintain the site, and how to ask for and receive help in the Drupal community.
Table of Contents (23 chapters)
close
close
Drupal for Education and E-Learning - Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1
Index

Using Views and PHP snippets together


Individually, both the Views and PHP snippets let us do some amazing things; when used together, we have even more options. In this section, we will cover one technique that uses a snippet to pass arguments to a view. This technique can be adapted to different contexts to provide some very powerful methods of creating dynamic navigation paths through content.

This can be very useful when tracking posts in a site that uses Organic Groups. In our example, we will create a view that takes two arguments: the group ID and the user ID. These two arguments will allow us to display all of the posts created by a specific user in a specific group.

Our PHP snippet will display a list of groups to which the currently logged in user belongs. The membership of each group will also be listed and clicking on a username will pass the arguments—the group ID and the user ID—to the view.

Creating the view

To create this view, we will clone the Tracker view that ships with the...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Drupal for Education and E-Learning - Second Edition
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon