Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

How do i check that i am in the home page


Reply


4 Posts   1252 Views

Avatar
kheeteck

Community Member, 7 Posts

16 June 2009 at 9:24pm

Is there a way to check if i am in the home page in the template file?

I am trying to

<% if Home %>

do something

<%end_if%>

Avatar
simon_w

Forum Moderator, 474 Posts

16 June 2009 at 9:32pm

<% if URLSegment = home %>
do stuff
<% end_if %>

should do it.

Avatar
kheeteck

Community Member, 7 Posts

16 June 2009 at 10:00pm

Hi,
Thanks so much for your help it works :)

One last qn,

How do i get the url link for Home, and the title of the home link?

Thanks

Avatar
simon_w

Forum Moderator, 474 Posts

16 June 2009 at 10:02pm

<% control Page(home) %>$Link is the link, $Title or $MenuTitle is the title<% end_control %>