This forum is for assistance with theme development.

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.

View and page template

I use the following code in my page.tpl.php file to redirect user to specific templated based on node types:

Testing if a node will be loaded from within page.tpl.php

I'm looking for a method to check in page.tpl.php is the current page is a displaying a node.

When a node is displayed, node.tpl.php will be called wich contains an adsense code block, therefore I want my other adsense block in page.tpl.php to only show on pages where a node+adsense is not already there.

I was hoping this can be done similar to the way you can test what sort of user is logged in, that would be convenient: http://drupal.org/node/13266 .

Any ideas?
JR

getting flexinode 4.7 to recognise nodes made in 4.6

Where do they hide the flexinodes in 4.7? :)

I made a flexinode thingi in 4.6 for a content type, and after upgrading, the content is still there but I can't find where to edit it, and looking in the content type of the administer menu, it's not recognising flexinodes created in previous versions. I created a new type and of course it called it flexinode-5 (rather than -2 which is what the original one is).

So do I have to make a new one to get it to recognise or have I just not found the thing that lets me edit them?

thanks :)
fyn

Pages

Subscribe with RSS Subscribe to RSS - Theme development