Jump to content

peljuu

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Everything posted by peljuu

  1. Nope, I just need to somehow get PHP function to return TRUE for only 1 page with some technique, and I thought that would be the easiest one but it works in reverse.. :/
  2. Hi guys! I'm new to PHP and I'm using Drupal and there's a function that one block will be called if PHP scripts returns value TRUE. Now I want my "Search" to only show at ALL THE other pages but not index. With the code: if (Url::exists('http://www.example.com')) I get my Search function to return TRUE so it will be showed on index page only, but not on any other pages!! So I kinda need this on reverse - how do I get a TRUE value for something that excists? In this case it would be www.example.com, or if anyone else has any other ideas I would be very thankful!
×
×
  • 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.