Jump to content
IC Essentials
  • Extra Conditions


    Notices 2.1.0 introduced a new filter field called "Extra Condition" which is a very powerful feature allowing you to use PHP code to determine if a notification should be shown or not.

    You can use it to filter by apps & modules/controllers, by member ids, by advanced date operations, DB queries or even API requests(which I wouldn't advise, the performance could be very bad here)

     

    Examples:

    Showing a notification on a specific page:

    1. select "Pages" in the app extra filter field.

    2. In the extra condition field, paste this code and replace 2 with the page id of your page you want to show the notification on.

    if( \IPS\cms\Pages\Page::$currentPage->_id == 2)
    {
    return true;
    }
    return false;

     



×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.