In Drupal 7. We created a Views to list all pages assigned to this particular TermA. But some of these pages can only be view by registered user. We would like to show the total number of pages in this TermA, so un-registered user know how many articles/pages they are missing without register. So how can I display the total number of pages in this TermA in View(not the term menu link)? It will be nice to show that number next to(or under) the Views title(see screenshots).

Current setting on views and display enter image description here enter image description here

wanna have total number of articles in this TermA like this

enter image description here

1 Answer 1


You could achieve this by creating view attachment or block which will calculate the total number of nodes per term. Do not add access rule for this case. This can be then called in the header of the Taxonomy Term View using Global:View where you can select the newly created view and its display.

  • I added an attachment with header "Global:Result summery". It does show the total of pages on that term. "But" it does not show the original total pages in this term if the user does not have the permission to views these pages. Am I missing something?
    – CocoSkin
    Commented Apr 29, 2014 at 14:07
  • Did you set the Access of the Attachment Display as None, it should work this way.
    – pritywiz
    Commented Apr 29, 2014 at 18:14
  • yes, the Access on Attachment is set as "None". But some pages are only for registered user only.
    – CocoSkin
    Commented Apr 29, 2014 at 18:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.