Hi everyone,

I'm just starting with Drupal and I have some questions.

I'm creating a website for a cultural and sports association. The website has different sections (Theatre, Football, Basketball, Handball etc.). We also have sponsors. They appear in a block on the right side. Now the thing is that one sponsor can sponsor one ore more sections. For instance, Sponsor A might just want to sponsor the Theatre and Handball sections. What is the best way of having only the sponsors that are related to each section appear? That is, if I click to view the Handball news, I just want Sponsor A to appear and if I click the Football news I don't want Sponsor A to appear.

I have a content type "Sponsor" that has taxonomy terms associated. The same which can be associated to each section. Then I created a View to show only the sponsors (Filter Node Type = Sponsor) that provides a block. I tried to play around with the Argument by filtering the taxonomy terms with the followin argument code handling:

if(!$args[0])
{
    $uri = $_SERVER['REQUEST_URI'];
    $lastArg = substr($uri, strlen(dirname($uri))-strlen($uri)+1);
    return array($lastArg);
}

but then I only have the block working correctly when viewing the main sections themselves, like at http://www.example.com/sections/football

How do I make this work for each case such as a story associated to football (e.g. http://example/node/23)

My second question is: how do I create an image that has a link associated? My sponsors are solely represented by an Image and a textual link at the moment. But I want the image to be a link itself so that when the image is clicked the user can visit the sponsors website, i.e. how do I make the code be printed like
<a href="http://www.sponsor-url.com/"><img src="files/imagse/sponsorA.jpg" /></a>
but without going into php details?

Sorry for the long post and thanks in advance.
Boarder