Welcome to Geeklog, Anonymous Monday, October 02 2023 @ 09:59 am EDT

Geeklog Forums

Select to show blocks on static pages only


This might not be easy to explain, but I'll try my best! I want to create blocks that show only on certain static pages. So ideally, when creating a block, the static pages are included in the 'Topic' drop down list, or I could type a list of static pages that the block will display on. Is this possible?! If so... any ideas how?!!

Status: offline


Site Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
If this is for a PHP block, you could write the block such that it checks which page it is going to be displayed on. And when it's the "wrong" page, simply return an empty string from the phpblock_ function and it will not be displayed. bye, Dirk

All times are EDT. The time is now 09:59 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content