This forum is for assistance with theme development.

How to hide blocks from Gallery pages?

I'm running the nice Gallery module and have embedded my Gallery 2.1 photos in my Drupal 5.0 site but I like to hide a few blocks on the Gallery pages.

I tried gallery/* and v/* in the blocks configuration but is not working.

Any ideas?

How to access super globals

Hi,

if I use this in my page.tpl.php

echo $_GET['q'];

I'll get empty output, also arg(0) is empty.

I just want to get the values behind ?q=

Is there a function for that?

Tekl

How to detect the presence of blocks within page.tpl.php?

I'd like to be able to detect the presence of certain blocks when they are positioned in the header region from the blocks settings.

Is there a variable or a function call which will allow me to do this from within page.tpl.php?

Specifically I'd like to know if the theme is set up to place the login and language sitcher blocks in the header of the theme.

I need some suggestion

Hi
My theme has 3 collumns on index page. Please see this screenshot: http://img232.imageshack.us/img232/7326/pagenw7.png

Collumn 2 and Collumn3 need to hold right_sidebar elements, like : "Active forum topics", "New forum topics" an "Login Form"

In collumn2 I want to see only the following elements: Active forum topics, New forum topics.
In collumn3 I want to see the login form.

I have the following code in /theme/page.tpl.php:

<div class="sidebar-right">
<?php if ($sidebar_right) { ?>
    <?php print $sidebar_right; } ?>
</div>


<div id="footer">
  <?php print $footer_message ?>
</div>
<?php print $closure ?>
</body>
</html>

This code generate the following HTML output:

IE problem with blocks

I have this apparently simple but baffling problem with my site's compatibility with Internet Explorer. The blocks that feed linked titles from various categories, e.g. "New & Announcements" and "Events" – don't provide the proper spacing. I'd also like to add bullets – but can't figure out how to do it.

The site is here, the blocks at issue are on the right side:

http://twulocal100.org

Question about site variable

I have problem with variable 'site_slogan'. I change Site slogan in admin->settings,
but variable 'site_slogan' is still empty in page.tpl.php.

In http://drupal.org/node/46006: "site_slogan: The slogan of the site, empty when display has been disabled";
but what does it mean: "empty when display has been disabled"

Pages

Subscribe with RSS Subscribe to RSS - Theme development