This forum is for assistance with theme development.

another question about $content

I was wondering why an empty row is placed above the content of $content, or else $sidebar_right or left.

If you take a blank page and do nothing but put print $content it puts a space of about 8px ( guessing on the actual height) above the content...

I can not figure out why this accurs....any ideas?

I have looked at the source code and looked at the div (

Can't get page-story.tpl.php to work

http://drupal.org/node/46006 seems to say that in Drupal 5 you can change the page display for different node types simply by creating a new page.tpl.php file for that node type - e.g. page-story.tpl.php.

However, it's not working for me - I just get the same old page.tpl.php every time.

Has anyone else had this problem? Can anyone point me to a solution?

Lucy

Question about variables in template.php

Hi,

I can' figure this out.

If you use print $content in the page.tpl.php file, it prints out the html that is stored in that variable.

Why is that when you are in template.php and use the same thing ( print $content) you get nothing?

I meanprint ' anything in here ' works just fine, but you can not print out what $content has in it...why is this?

How to alter forms without hook_form_alter

I'm looking for a way to customize forms (simply because I don't need formatting options for comments and I do need to tell something to the user at that point) without having to make a customized module for this again. I've been searching for form_alter functions, but the only one that makes sense to me is hook_form_alter, but that's not exactly the solution I'm looking for.

Multi column menu

Greetings,

Hopefully someone has a nifty trick for me.

This is pretty much what I want my menu to look like: http://www.toothless.co.za/menu_question.gif

I am working on a site that will have a lot of sub navigation and I think this would be a nice way to break it up as to not have a huge vertical menu.

How to change tabs markup?

There is this menu_local_tasks function, but that only puts a nice unordered list around the tabs. The actual list items (which I would like to style) are generated through a general list theme function. I want to provide each tab with a unique icon, so every tab needs a unique ID. How would I do this without brute force (using regular expressions)?

Pages

Subscribe with RSS Subscribe to RSS - Theme development