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   1191 Views

Avatar
kheeteck

16 June 2009 at 9:24pm Community Member, 7 Posts

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

16 June 2009 at 9:32pm Forum Moderator, 474 Posts

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

should do it.

Avatar
kheeteck

16 June 2009 at 10:00pm Community Member, 7 Posts

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

16 June 2009 at 10:02pm Forum Moderator, 474 Posts

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