• Resolved awfowler

    (@awfowler)


    I have a set of pages restricted with this plugin but can not find where these are stored in the database.

    At the moment these are all displayed within search results and I would like to amend the search so these are not displayed.

Viewing 1 replies (of 1 total)
  • Plugin Author Joachim Jensen

    (@intoxstudio)

    Unfortunately it is not currently possible to hide restricted items from search results, lists, or custom queries out of the box.

    I generally recommend using one of these options:
    1. Only display excerpts in search results
    2. Restrict the search results page altogether (Look in Special Pages in Access Conditions)
    3. Update the theme template for search results and use the RUA API like so:

    
    if(rua_get_user()->has_level($level_id)) {
        //display content
    } else {
       //hide content
    }
    

    I hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘How to restrict access within search or templates’ is closed to new replies.