Search results by page template (1 post)

  1. mwelfare
    Posted 4 years ago #


    I am currently developing a site which is focused around the search functionality.

    A user could search for a book name, a module name, a course name or a university.

    On the results page I want to display the results in separate sections - so if there search is 'Marketing', it will show up books for marketing, modules for marketing and courses for marketing.

    I see this as saying 'if result is on a page using universities.php template, then show results in the universities section'. However, I am struggling to understand how to put this in the code.

    I would appreciate any guidance anyone can give me



    Below is my current code:


Topic Closed

This topic has been closed to new replies.

About this Topic