Hi,
How do I display specific blocks in frontpage and blog page and to do it in reverse also. I tried putting these codes <code> To display in front page: <?php if (drupal_is_front_page()) : ?> </code>
<code> To display in reverse: <?php if (!drupal_is_front_page()) : ?> </code> in the "Page specific visibility settings"--->" Show if the following PHP code returns TRUE (PHP-mode, experts only). " but it doesn't work. Your help is highly appreciated. Thank you very much.
Regards,
Richard R. Cahilig
Based on what I understand you're trying to do, you do not need to use PHP to accomplish this. Set "Show on only the listed pages." and the type "<front>" and "/blog/*" (or whatever the path is) on two lines in the box. Then do the same thing with "Show on every page except the listed pages." set.
Brian
On Sun, Apr 25, 2010 at 4:17 PM, Richard Cahilig r.cahilig@gmail.comwrote:
Hi,
How do I display specific blocks in frontpage and blog page and to do it in reverse also. I tried putting these codes
<code> To display in front page: <?php if (drupal_is_front_page()) : ?> </code>
<code> To display in reverse: <?php if (!drupal_is_front_page()) : ?> </code> in the "Page specific visibility settings"--->" Show if the following PHP code returns TRUE (PHP-mode, experts only). " but it doesn't work. Your help is highly appreciated. Thank you very much.
Regards,
Richard R. Cahilig
-- [ Drupal support list | http://lists.drupal.org/ ]