Tagged Questions

2
votes
1answer
37 views

Field inside of a Field

I need to put a field (field_names) inside of the body of the node. I read that you could do something like: <?php print render($content['field_names']); ?> The above code does not work for ...
1
vote
1answer
116 views

Do a render foreach loop on a regular field?

I have a regular field with multiple values, If i do render( $fields['field1'] ) It prints Field1_value1 Field1_value2 Field1_value3 etc Am trying to get it to output like this [Field1_value1] ...
0
votes
1answer
19 views

Thumbnails limit max first 6 images

I'm using Drupal 7 and create a module for my content thumbnail images frontpage display. Working this: if(count($p_detail->field_slide) > 0){ $output .= '<div ...
0
votes
1answer
23 views

Get field names of view from within module

After using views_get_view($view_name) how do I get the names of the fields? The list of field names (arranged correctly) is going to be pushed onto an array following which will be all the results. ...
0
votes
1answer
103 views

Email webform results - only filled fields

Is there a way to email the webform results with only the filled (NOT empty) fields I don´t want all the fields to be mandatory and 80% of my long long form will be optional and it´s very wierd ...
0
votes
2answers
75 views

References by title (not nid) while creating nodes via PHP code

does anyone know how to create node reference while creating node programmatically? I mean - using TITLE and TYPE, not nid. I am creating nodes via python script and user is prompted for title of ...