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.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | views-make_content_path_respect_node_language-1851594-7.patch | 2.01 KB | andrew answer |
Comments
Comment #1
guillaumev commentedHere is the patch.
Comment #2
jiong_ye commentedhi 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
Comment #3
jiong_ye commentedoh never mind.
Comment #4
dawehnerWhat about such kind of patch, so we don't have to load the node itself?
Comment #5
HerrSerker commentedthis last patch worked for me.
Thanks for that.
Comment #6
chris matthews commentedThe 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.
Comment #7
andrew answer commentedPatch rerolled.