I have a use case where I need a view that displays multiple node titles linked to the node URLs. These node URLs need to respect the node language (ie if the node is in Spanish, the node URL needs to be http:///es/
). I found a way to do this by adding a simple option in views_handler_field_node_path.inc. I will provide this as a patch.

Comments

guillaumev’s picture

Status: Active » Needs review
StatusFileSize
new1.73 KB

Here is the patch.

jiong_ye’s picture

hi thanks for the patch. but for some reason, i don't see to have this file: /modules/node/views_handler_field_node_path.inc.
i am running view 3.5 and drupal 7.16

jiong_ye’s picture

oh never mind.

dawehner’s picture

StatusFileSize
new1.04 KB
new2.04 KB

What about such kind of patch, so we don't have to load the node itself?

HerrSerker’s picture

Issue summary: View changes

this last patch worked for me.
Thanks for that.

chris matthews’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

The 5 year old patch in #4 to views_handler_field_node_path.inc does not apply to the latest views 7.x-3.x-dev and if still relevant needs to be rerolled.

Checking patch modules/node/views_handler_field_node_path.inc...
error: while searching for:
  function option_definition() {
    $options = parent::option_definition();
    $options['absolute'] = array('default' => FALSE, 'bool' => TRUE);

    return $options;
  }

error: patch failed: modules/node/views_handler_field_node_path.inc:15
error: modules/node/views_handler_field_node_path.inc: patch does not apply
andrew answer’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new2.01 KB

Patch rerolled.