This forum is for assistance with theme development.

Site Logos... Please help if you can

I'm not sure thi is the right place to post this.
I am very new to Drupal and indeed PHP... I love the Interlaced themeas well as the Chameleon theme but find it hard to customize them by adding my logo.

I have tried the instructions given at http://drupal.org/node/view/6629#comment-6458 but had no joy... Would any of you gurus please care to help?

Thanks in advance.

Suppressing "Submitted by" on PHP Static Page

I am reposting this under Theme development as it may be more appropriate here.

I followed Steven's "Quick Hack" suggestion (http://drupal.org/node/view/6385#9600) for suppressing "Submitted by" on static pages by making the following modifications:
Open up xtemplate.theme and find the following lines:

"submitted" => t("Submitted by %a on %b.", 
                      array("%a" => format_name($node), 

"%b" => format_date($node->created))),

and replace by

"submitted" => ($node->type != 'page' ? t("Submitted by %a on %b.", 
                      array("%a" => format_name($node), 
                            "%b" => format_date($node->created))) : ''),

This works great for HTML formatted static pages, but it does not work with PHP formatted pages. I suspect that this might be caused by PHP pages not being rendered as node type = 'page' for some reason. I have spent hours searching the entire site for possible explanations and solutions, but aside from finding a handful of posts identifying the same problem, I have not found anything that is actionable. So, I am hoping that this forum topic will attract attention and suggestions from one of the many Drupal wizards in the community. I am using Drupal CVS. Any suggestions are appreciated. Donovan.

Apply Specific HTML template to: taxonomy OR node-type OR module OR block

Hi,

i'm new in Drupal (ex postnuke user) and i would like to know if it's possible to
apply different html templates for differents taxonomy or different module or different block.

If we can do it, where can I find documentation about it?

I look on the forum put I found a lot of un-awnsered answers

Xtemplate Block Template Fiddling

Okay, I'm breaking stuff. I'm pretty solid on CSS, but I've been a CF programmer for a long time, and I'm new to PhP, so forgive me if I'm asking stupid questions.

The Designers I'm working with have set before me an interesting challenge -- making the title of a section in the blocks areas (right and left side menus) have different styles -- the first word be one color, the rest of the title be another. So, if I were just going to code it, I would have Main Menu or something like that. The trick is to try to get the xtemplate I'm customizing to do that on the fly.

I have been trying to make the template variable {title} into two variables {title_a} and {title_b}. So I started hacking xtemplate.theme. The code I'm hacking is on my line 241 or so, and looks like this:

function xtemplate_block(&$block) {
global $xtemplate;

// create template variables for all block variables (module, delta, region, subject, content, ...)
foreach ($block as $key => $value) {
$xtemplate->template->assign($key == "subject" ? "title" : $key, $value); // TODO: standardize on 'title' (ie. rename all $block["subject"] to "title")
}
$xtemplate->template->parse("block");
$output = $xtemplate->template->text("block");
$xtemplate->template->reset("block");
return $output;
}

and to try to create my two title variables, I've created this mess:

Xtemplate Block Template Fiddling

Okay, I'm breaking stuff. I'm pretty solid on CSS, but I've been a CF programmer for a long time, and I'm new to PhP, so forgive me if I'm asking stupid questions.

The Designers I'm working with have set before me an interesting challenge -- making the title of a section in the blocks areas (right and left side menus) have different styles -- the first word be one color, the rest of the title be another. So, if I were just going to code it, I would have Main Menu or something like that. The trick is to try to get the xtemplate I'm customizing to do that on the fly.

I have been trying to make the template variable {title} into two variables {title_a} and {title_b}. So I started hacking xtemplate.theme. The code I'm hacking is on my line 241 or so, and looks like this:

function xtemplate_block(&$block) {
global $xtemplate;

// create template variables for all block variables (module, delta, region, subject, content, ...)
foreach ($block as $key => $value) {
$xtemplate->template->assign($key == "subject" ? "title" : $key, $value); // TODO: standardize on 'title' (ie. rename all $block["subject"] to "title")
}
$xtemplate->template->parse("block");
$output = $xtemplate->template->text("block");
$xtemplate->template->reset("block");
return $output;
}

and to try to create my two title variables, I've created this mess:

Any site provide drupal template?

Is that any site that provide drupal templates? I've been looking around but it's hard for me to find it. Currently I used phptemplate for my site.

I hope there will be more template added in Drupal :)

Pages

Subscribe with RSS Subscribe to RSS - Theme development