Skip to main content

Having one page show Activity Streams of all pages

Hi there,

All pages have the ability to show the Activity Stream for that page. For example, all donations show up in the Activity Stream on the donations page. Or, all endorsements show up in the Activity Stream on the endorsements page. 

I've seen a site or two (such as at the bottom of this page) that has an Activity Stream on the home page that shows all of the Activity happening on every page of the site (all donations, all endorsements, all twitters, etc.). I would like to do that here. However, I have been unable to find in the documentation where it says how I can convert a regular Activity Stream into the kind that shows site-wide Activity. 

Can you point me in the right direction? 

Thanks!

Official response from

Site-wide activity can be called using the "site.activities" variable, which is documented on the Site Variables page in our Theme Documentation. Using the Activity Variables ("type_name"), you can specify which activity types (i.e., Feedback, Donation, etc.) you would like to include (or exclude).

For example, the code to show activities from across the site might look like this:

{% for activity in site.activities limit:10 } {% unless activity.type_name == "Feedback" } {{ activity.show }} {% endunless } {% endfor }

Share this post

Showing 8 reactions

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.