This forum is for assistance with theme development.

How to change drupal head icon in address bar / url link / navigation bar on top?

Hi I'm trying to change that drupal head icon on top where it is to the left of the url address.

This is the line referencing it right?

link rel="shortcut icon" href="/drupal/misc/favicon.ico" type="image/x-icon"

And I did change it in the misc/ folder to my own icon. it still doesnt show up for some weird reason.

Adding shading/background to story

On the drupal.org home page there are "news and announcement" stories that have a shaded background. How could I do this on my site? Thanks!

Search Form

Hi,

Can anyone give me the search form to be included in the template?
I am developing my own drupal template and wish to integrate the search form to the design. I want the search form to be appeared in every section of the site.

Thanks

ckk custom field embedded within body

This is probably a silly newb question as I've only been using Drupal for about a week - here goes...

I have created a custom image field $field_article_embedded_images in my content using CKK and thickbox. This field allows multiple values, so that I can have many images for my node

I have a custom text field to enter the text for the node.

What I want to be able to do is embed from the array $field_article_embedded_images individually within the text on the custom text field.

I have set the Input Format for the text field to "PHP Code" and tested that it works ok by putting in a simple print statement, which works ok.

I then added the following code, to display the first image from the array, if there is one:

<?php if ($field_article_embedded_images[0]) 
  { ?>
  <div class="embedded-image"><?php print $field_article_embedded_images[0] ['view']; ?></div>
  <div class="field-item"><?php print $field_article_embedded_images[0] ['alt']; ?></div>
<?php } ?>

And it's not picking up the image (I guess because the variable $field_article_embedded_images[0] does not have a value within the text field.

Here's the output from the Dev render that relates to the image:
field_article_embedded_images

Array
(
[0] => Array
(
[fid] => 26
[title] => car-on-dyno.jpg

Is there a cariable that prints....

that prints the path to the login page?

All I want to do is put a "text link" to the login page, but was not sure if there was a variable that is available that already has the path directly to it, or if I would need to use a combination of $base_path and regular html to get the text to point to that page.

Pages

Subscribe with RSS Subscribe to RSS - Theme development