This forum is for assistance with theme development.

Printing field collection (or multifield) in node.tpl.php

how can I print fields from field collections or multifields in a node.tpl.php. I want to be able to wrap html around my variables.

Before I changed it to a multifields I had this code and it worked just fine:

Intergers fields (Cannot print safe_value). [solved]

Could anybody help me to understand why I cannot print in a node.tpl.php a safe_value.

For instance, it doesn't print anything if I add this code to a node.tpl.php :

<?php $items = field_get_items('node', $node, 'field_servings');
					foreach ($items as $item) { print $item['safe_value']; } ?>

I have to remove the safe_ such as:

Remove class 'leaf' from li elements

Hy,

I'm trying to remove all the classes from the li elements. I found a small function, is working just fine, but when refreshing the page I get the following message : Notice: Undefined variable: sub_menu in default_menu_link() .

The function is the following:

TID for simplenews-newsletter-body.tpl.php

i've created different categories for simplenews newsletter.
from id 753 to 1092 work perfectly but now i've created a new category (id 1177) and only for this the template don't work.
the settings are the same for other categories... i don't understand....

Problem with views [Solved]

I rebuilt the views from scratch and somehow it fixed the problem

bundle exec guard is really slowling

Run guard (drush omega-guard) in windows environment is really slow?How setting up right configuration in Omega 4 ?

Pages

Subscribe with RSS Subscribe to RSS - Theme development