1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Get the # of posts displayed on a thread_view page in the header?

Discussion in 'Styling and Customization Questions' started by DeltaHF, Oct 8, 2016.

  1. DeltaHF

    DeltaHF Well-Known Member

    Is there a template variable which I can use in the PAGE_CONTAINER template that will give me the number of posts displayed on a thread_view page?

    I've tried {xen:count $posts}, but that doesn't work if it's not inside the thread_view template.
    Last edited: Oct 8, 2016
  2. Arty

    Arty Well-Known Member

    No, variables that are used inside template aren't available in page_container. You need to explicitly export them to container template using <xen:container>
    DeltaHF likes this.

Share This Page