Read more path in views (Drupal)

Solution: In the view, add the field for content:path. Display it or don’t display it. Rearrange the fields so that path field is above the trimmed content. Go back to the trimmed field. Replacement patterns now has a path. Use it as the (duh) path.


Original post


Tạo mới field chatroom trong drupal 7

if (!field_info_field(‘field_chatroom’)) {
$field = array(
‘field_name’ => ‘field_chatroom’,
‘type’ => ‘chatroom’,

// Create the instance on the bundle.
$instance = array(
‘field_name’ => ‘field_chatroom’,
‘entity_type’ => ‘node’,
‘label’ => ‘ChatRoom’,
‘bundle’ => ‘project’,
‘required’ => TRUE,
‘widget’ => array(
‘type’ => ‘chatroom_chatroom’,