Items This Page

Items This Page 1.1.1

No permission to download
  • Thread starter Thread starter AdminAdmin is verified member.
  • Start date Start date
Admin

AdminAdmin is verified member.

Well-Known Member
Staff member
Administrator
Admin submitted a new resource:

Items This Page - Add template variable $xf.itemsThisPage for how many posts/media items/resources/etc are on a page

Adds a new template variable $xf.itemsThisPage containing how many posts/media items/resources/etc. are shown on a page.

This is useful in templates if you want to adjust the display of some element based on how many posts or threads or media items there are displayed.

For example, you might want to hide an element from the sidebar on short threads (or on the last page of a thread where only one or two posts are shown), to prevent the sidebar from being much longer than the content...

Read more about this resource...
 

Facebook Comments

Similar threads

Admin
Replies
0
Views
587
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
972
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
727
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
763
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
951
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
799
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Back
Top