This forum is for assistance with theme development.

Is there a way to give blocks diffrent colors

hi

due to my being new to drupal
so i still can't demonstrate the domine of theme devloping

so my question is if there is a way(programing i mean) to give a different unique color to each block (background) on the page, iam working on spreadfox theme and in fact they use background image to specifiy the color of the block....

thanks in advance.....

Changing the delimiters for block menus

I'd like to know if there's a way to change the way the menu links are displayed ? With a delimiter ?

I use this for primary links, but what about the other menus ? Wich variable do I have to call instead of $primary_links?

Disable Block menu title

Hi !
I don't want to display the block's titles for menus, is it possible ?

Thanks ;)
Matt

Primary Links for tabs

I currently have my Drupal Primary Links set up to act as tabs. I used the Basic instructions for adding graphic tabs to your Drupal theme doc to set it up -- and it works pretty well.

When I click on a Primary Link (which is a tab) - it goes to the appropriate page and the tab appears selected. So if the primary link path is "products" being on "website.com/products" the tab is selected. However, if the path is "products/somepage.html", the tab is no longer selected. However, I want to the tab to be selected.

The behaviour makes sense when viewed in the context of how links are labeled as "active" (which is the mechanism upon which the tab selection is contingent on). Below is the code used within my .tpl.php file:

<?php if (count($primary_links)) : ?> 
<ul id="primary">
<?php foreach ($primary_links as $link): ?> 
<?php $class = ""; ?> 
<?php if ( stristr($link, 'active') ) : ?> 
<?php $class = 'id="current"'; ?> 
<?php endif; ?> 
<li <?php print $class ?>><?php print $link?></li> 
<?php endforeach; ?> 
</ul>
<?php endif; ?>

In attempting to tackle this problem, I'm inclined to parse the path of the url and determine what "directory" the end-user is browsing, and setting the tab to be active. Is there a more elegant solution to this -- one that doesn't require the hard-coding of values to be used in the conditional statements?

A sub menu for each page

Hi I'd ike to display a different sumenu on each page. My site map is for example:

- HOME

- WEBZINE

- RADIO

- SHOP

So on the page called "WEBZINE"

I'd like to display this menu

WEBZINE
// previews //
// discs //
// labels //
// etc //

And on th shop page, something like that :

SHOP
// T-shirts //
// bags and caps //
// other //

Do you know what I mean ?

Images on page

hi all,

Is it possible to place images on a page? i used img tags but without any luck :(
And the image module doesn't work on drupal 4.7.

Pages

Subscribe with RSS Subscribe to RSS - Theme development