This forum is for assistance with theme development.

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"

Trouble with gunmetal

Hello all,

I couldn't find the answers to these questions via searching the forums and handbooks. My apologies if they have been covered before.

1). In the gunmetal theme, there is no content block as default. The default displays the last 10 posts or whatever it is set at. This content is displaying fine. However, submission forms appear down quite a ways in the content block area, below the lowest block on the right sidebar. Is this just a bug in the theme itself? If it is caused by 800x600 resolution, how does one eliminate this extra spacing?

Trying to create "traditional" navigation

Hi,

I trying to create a more traditional navigation for a "standard' web site. By that I mean I need to have the main navigation along the top consisting of say "About Us | Services | Our Team" and when someone clicks on "About Us" a submenu appears down the left hand column whose menu items only relate to "About Us". Then the same for "Services", I'm sure you get the picture.

I want to be able to detect which page and section visitors are looking at so I can update the styling on the navigation accordingly i.e. change the background colour of the menu items they've selected both on the main and sub-nav e.g.

=======================================
About Us | Services | Our Team | Etc | Etc
=======================================
--------------------------------------
PHP Development
Web Design
Another Service
One more service
--------------------------------------

I'm using a 'Page' type for all of these pages and I've started using the Primary Links for the main nav which works fine but I'm at a loss as to how to link it with the sub navigation. I think what I need to do is create a 'section' or 'category' so I can see from the URL where they are, something like http://mysite/aboutus/history or http://mysite/services/webdesign whereas at the moment all I get is a node/34 or node/56 which doesn't relate to anything in terms of where I am on the site.

Pages

Subscribe with RSS Subscribe to RSS - Theme development