This forum is for assistance with theme development.

$style template.php

I want to alter the $style variable in template.php to add conditional IE stuff around a particular css file ( <!--[if lte IE7]> etc). I can do this fine, but nothing changes in the generated html when I view source. It is as if the page.tpl.php has already got the $style BEFORE I have "modified" it in template.php. I am setting $vars['style']. Any clues?

As a matter of interest, just how does the $vars['name'] become $name anywayin the templating system? Curious.

Themed Views

once you have used the views theme wizard and it has created the views file .tpl.php where should this be placed?

and once they have been placed should they be listed in the views list at /?q=admin/build/views

Once again, thankyou for all the help

Themed Views

once you have used the views theme wizard and it has created the views file .tpl.php where should this be placed?

and once they have been placed should they be listed in the views list at /?q=admin/build/views

Once again, thankyou for all the help

How to check if user is logged in in node.tpl.php and comment.tpl.php

I'm trying to find out how to check whether the current visitor is a logged in user or not. In any other file than node.tpl.php and comment.tpl.php I could easily use $user to check, but this object has got a whole other meaning in those two files. I wasn't able to find anything using Google, so I wondered if anyone here could enlighten me on this. Thanks in advance!

Menu Layout - how to?

Hi,
This is my first Drupal template and I’m just getting acquainted with the terminology so when explaining things it would be great if you could bare that in mind.

I was pleasantly surprised how fast I’ve been able to get a grasp of the Drupal fundamentals; I coded pretty much my whole site in 1 night – not bad for my first attempt. However I got to the menu and it was like hitting a brick wall. I’ve now been searching and reading for 2 days and still not found a way to do what I want so I’m here to ask for help.

I have a pretty unique menu set up that requires all the parent links to be within one div and the child items to be in another div… its pretty hard to explain but I’ll give it a go.

I will be using the following setup for my examples:

Home
-----Staff
-----About Us
-----Contact Details

Forums
-----Enemy Territory: Quake Wars
-----Crysis
-----Warsow

Articles
-----Features
-----Reviews

Inside the following div is where my parent links are, notice the repeat of the link name:

<ul id="ident" class="class">
<li rel="Home"><a href="#">Home</a></li> - The rel text should be repeated from the parent name.
<li rel="Forums"><a href="#">Forums</a></li>
<li rel="Articles"><a href="#">Articles</a></li>
</ul>

how to make searchable fields in user_profile.tpl.php?

hi guys,

how i can create search/browsable fields on custom profile fields?

for example,

a user fill out a fild named "haves"

output:

haves: contacts, ideas, cool websites, solutions, problems

all separated by comma

i want one link on each comma separated value

how is this possible?

greets

Lausch

Pages

Subscribe with RSS Subscribe to RSS - Theme development