Jump to content

Conditional Statement Question

Featured Replies

Posted

I am wondering if there is a conditional statement I can use based on a URL?

I want to tell IPS to show some HTML IF it's on a specific URL

Is this possible?

You can use the current url

\IPS\Request::i()->url()
{{ if \IPS\Request::i()->url() === 'some_url'}}
	HTML
{{endif}}

 

Edited by newbie LAC

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.