This forum is for assistance with theme development.

Template to theme

Ok i'm new to drupal, new to php, fairly new to css. I have tons of programming expierence, mostly in VB.NET/ASP... So i made a page layout in Photoshop, then sliced it up all nice in Image Ready and have the HTML to display the pictures where I want them. My question/problem is that I dont know what I need to change to have drupal display my header images instead of a single logo and my nav images instead of the primary links. I've been scouring the php/css and i found where the background images are set.

Primary & Secondary links

I'm trying to customize my drupal site, and in the primary and secondary links it displays as:

Link1 | Link2 | Link3 | ....

I there a way I can remove the | in between each link?

problem with "echo". i know it seems quite incredible but...

...i've a problem with ECHO! O_O

look this snipped:

$categories = taxonomy_get_tree(3);
$curr = $categories[0].name;
echo $curr;

I should see the name of the first category, rit? Well...NO! i get the string "Objectname".
The dot is not interpreted as object attribute access operator, but as string concatenator

$categories[0]->name works but....im just wondering why the dot doesn't...

Theme engine development?

Hello,

Is there anything like "Drupal theme engine development HOWTO" out there? I'm thinking about adding XSLT template support for Drupal, but I'm unable to find anything/anyone what could help.

Regards,

categories listing

I'd like to print a list of all terms of a vocabulary, since i need to show a links collection to all categories. I used this snipped in my php page:

			
			$termini = taxonomy_get_tree(3);
			var_dump(($termini[0]));
			$limite = count($termini);
			for($i=0; $i < $limite; $i++) print $termini[$i]["name"];

var_dump() shows me the entire struct:

My php code stops the page from rendering

Hiya, I tried to code this in phptemplate, I wrote this is page.tpl.php:

//if user is logged in, show left, if user is also admin, show right.
global $user;
if ($user->uid) {
if ($user->uid == 1) {
print $sidebar_left;
} else {
print $sidebar_right;
}
} else {
return;
}

If the admin is logged in, it seems to work fine and I get the left column block, but when I went to my site as anonymous the page just stopped where I pasted this code.
Like in the middle of the HTML, there was just blank.

Pages

Subscribe with RSS Subscribe to RSS - Theme development