solved Current url

gary.moncrieff
gary.moncrieff
@garymoncrieff
11 years ago
865 posts
Hey Guys

Been trying to use {$current_url} to show something on a particular profile page and not on others, ie its part of the profile footer file.

ie
{if $current_url=="some url"}

Show this

{else}

show this

{/if}

Not having any success, is it even possible to do this?

Gary
updated by @garymoncrieff: 12/11/14 04:53:21AM
douglas
@douglas
11 years ago
2,802 posts
Your syntax is a little off. You need to have spaces between the variable and the == and after the == as well.

{if $current_url == 'the URL'}

Show this

{else}

show this

{/if}

I just tried this on my dev site and I'm not seeing an issue.

Hope this helps! :)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
gary.moncrieff
gary.moncrieff
@garymoncrieff
11 years ago
865 posts
Thank you Douglas it's these little things that always catch me out.
updated by @garymoncrieff: 10/31/14 04:46:20AM
douglas
@douglas
11 years ago
2,802 posts
I'm not Michael, but you are welcome! ;)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
gary.moncrieff
gary.moncrieff
@garymoncrieff
11 years ago
865 posts
Sorry lol corrected it
updated by @garymoncrieff: 10/31/14 04:46:35AM

Tags