Welcome to Geeklog Monday, July 15 2019 @ 08:13 pm EDT

Geeklog Forums

Right / Left Block for Static Page?


Status: offline

bcbrock

Forum User
Chatty
Registered: 04/02/03
Posts: 64
Hack Request...

Anybody have any ideas on how I could get a right block to display for a specific static page, much the same way you could for a specific topic?

I've done a bit of PHP coding in the past, so I'm not looking for a turnkey solution - just a bit of brainstorming that may get me on the right track. The site this will be used on is a relatively static site, so I'm not opposed to hard coding the staticpage id's somewhere, either. Smile

TIA!
~Brian

Status: offline

jmucchiello

Forum User
Full Member
Registered: 29/08/05
Posts: 985
Use a phpblock and have the block code check the current URL. If it is staticpage/index.php?id=xxx where xxx is the staticpage in question, display the content. Otherwise return an empty string. Empty blocks do not display.

Status: offline

bcbrock

Forum User
Chatty
Registered: 04/02/03
Posts: 64
Ah-ha!!! That's Magically Delicious!

(and it worked perfectly too!)

Thank You! Big Grin
~Brian

All times are EDT. The time is now 08:13 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