Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 8366

The most basic form of content on a Drupal site is a node.

2 votes
2 answers
1k views

How to display the trimmed value and the full value of a field in a same node

I have a content type with a text field that i want to render trimmed and full in the same node. I've set my field to "trimmed" and rendered it in my node.tpl.php using <?php print render($content[' …
mix's user avatar
  • 61
3 votes

How to display the trimmed value and the full value of a field in a same node

i answer myself: inside node.tpl.php, this is rendering a trimmed version of my field <?php print render(field_view_field('node', $node, 'field_myfieldname', array( 'label'=>'hidden', …
mix's user avatar
  • 61
0 votes

Add a CSS class to field in content type

There's a very simple module called Field Formatter CSS Class that does exactly this. When activated it allows you to add a CSS class to your field via the Manage display tab of your content type.
mix's user avatar
  • 61