Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
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...
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.
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.