Perch:before showing even when no results are returned

  • Hello,


    I'm calling in region information from another page and filtering the results. However when no results are returned the <perch:before> and <perch:after> sections are still being shown.


    The filters work fine and only show the information associated with the current page - however when there isn't any information associated it still returns the before and after code.


    The template is as follows:

  • drewm

    Approved the thread.
  • Hello SixTillNine


    This is because there are some results but you are not outputting them (because of the conditional tag inside the template). If you move your filtering logic outside of the template, you should get the behaviour you want: