开发者

how to know if user is seeing home page or not?

开发者 https://www.devze.com 2023-01-03 03:56 出处:网络
today i was doing some java script coding, in that i need some images only appear on my home page. so how can know that if user is seeing t开发者_Python百科he home page or not?

today i was doing some java script coding,

in that i need some images only appear on my home page.

so how can know that if user is seeing t开发者_Python百科he home page or not?

or i do this with url check up?
is their in built function check in drupal 6?


In a page.tpl.php or similar you can use $is_front.

$is_front: TRUE if the current page is the front page. Used to toggle the mission statement.

From: http://api.drupal.org/api/drupal/modules--system--page.tpl.php

0

精彩评论

暂无评论...
验证码 换一张
取 消