Is this possible? (teaserblock, clean links right top, dropdownmenu)

Tmanagement - September 7, 2006 - 17:35

Hi all,

Currently I run into severall problems during my first template design for drupal. Despite I already solved alot myself by reading this forum there are still some things which I did not figured out myself so hopefully somebody can show me the path.

Teaserblock
My design is having 3 teaser blocks on the rightside. You can see it as a picture with text on which visitors can click, taking them to the right content.
Is it possible to create those kind of teaserblocks as you do for content provided that the output will be styled by CSS? If so, how can this be archieved?

clean links right top
As many sites I would like to have a few links on the top right of my page such as contact disclaimer a searchfield and box. What I dont want is that it will display a menu title. It seems that the only way you can create links at the backend is by adding a menu title. Is this so? what is the fastest and easiest way?

Dropdownmenu
I am not sure yet but suppose that I want to use a css dropdownmenu is this then possible with drupal in such a way that you dont have to tweak almost everything involved?

finaly it would be great to have a overview of all the output that drupal is producing which will make it easier to use drupal flexible with template design. Is such available?

Servus.

nofue - September 7, 2006 - 17:45

For those "clean links" I'd put these items as a Primary Menu. Getting rid of titles is an easy one, just look in the .tpl.php files (or build some on your own).

Dropdownmenus are easily achieved with the nicemenu module, reportedly a great extension (if one likes drop downs on websites :)

I'm a bit confused what you mean by "all the output". This depends on the theme, but

<code>
<?php print_r($node) ?>


shows you all the stuff "in the background", whether it's used by the theme or not. Or did you mean something else?

Norbert

-- form follows function

Thanks for your reply. To

Tmanagement - September 7, 2006 - 18:33

Thanks for your reply.

To solve my title problem it is not an option to remove it in the tpl.php files since it will make all titles disapear which is not what I want for example some navigation parts.

Do you have an idea how to proceed with my teaserblocks?

With the output I mean thinks like $breadcrumb, $help, $mission etc. I would like to know where everything is put in the database and how you can pull it out in order to taillor it even more when necessary.

Page.inc?

nofue - September 7, 2006 - 20:47

Servus.

Well -- depending on how you want to select whether showing a title or not, you may write some conditional statements to determine when to show titles. I think that's one good use for taxonomy as well -- set up a taxonomy and give it a vocabulary of "display". Make two entries, "show" and "hide" and use that to check how to present that title. I haven't done that yet, but it seems like an obvious solution is you want to display titles without a clear rule.

However, you don't need to manage display in f.e. page.tpl.php but you can also determine which function themes the titles in question and write overriding code to a file with the name of that function, according to theming guidelines. I.e. (out of the guts, no warranties taken) if you find titles are added by theme_menu(), just copy that function from the core into a file named yourtheme_menu(), put it into a file named yourtheme.tpl.php and change the code to your likings.

As with your teaserblocks, I'm clueless what you want to achieve. Maybe you can provide a link to at least a graphic to help me thinking about it.

To get an idea what may be generated have a look to page.inc (again, I think, being away from my machine). There's a theme_page() function which is "the mother of all pages"... page.tpl.php in the themes/engines is an exact copy of that function, AFAIK.

Final disclaimer: I'm still on my way into Drupal, and the above is how I would I try to handle the issue, and I'm not sure if there's a better way to achieve the same results. Maybe somebody who knows better can shine some more light on this...

Norbert

-- form follows function

I will pay attention to the

Tmanagement - September 8, 2006 - 06:18

I will pay attention to the taxonomy module to see if does the job.

About the teaserblocks just have a look at microsoft.com. There they use pictures with text as well on which you can click. I would like to do the same in Drupal but not by using pictures alone. The text on the picture must be plane text in order to get it better indexed by searchbots.

It would be handy if somewhere in Drupal you have the possibility to put in a picture and type the text which has to go with it. (does not have to be on the picture can also be aside of it)
Because the text is plane I must be able to style the text with css and also the picture.

 
 

Drupal is a registered trademark of Dries Buytaert.