Skip to content
View in the app

A better way to browse. Learn more.

JimiWikman.se

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Show block only on the startpage for Databases

  • Owner

Sometimes you want to show a block only on the start page of a database and since if you add a block to the template it show up everywhere in the database, that can be annoying. Don't worry though, there is an easy fix for this.

In your block add this as the first line:

{{if \IPS\Request::i()->app == 'cms' and \IPS\cms\Databases\Dispatcher::i()->categoryId == 0}}

Then close it with {{endif}} on the last row.

This little snippet will check to see if you are in a category or not. On the start page you are not in a category yet, so the result will be 0. On all other pages this check will not be true, so it will not show there.

You can use this to target specific categories as well, or show things everywhere else but on the start page.

 


View full record

  • Views 986
  • Created
  • Last Reply

Featured Replies

No posts to show

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.