Welcome to Geeklog, Anonymous Monday, October 03 2022 @ 04:24 pm EDT

Geeklog Forums

Select to show blocks on static pages only


Anonymous

Anonymous
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?!!
 Quote

Status: offline

Dirk

Site Admin
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
 Quote

All times are EDT. The time is now 04:24 pm.

  • 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