1

I have a Views view of some news nodes. Each of the news nodes has "Generate automatic URL alias" ticked in the "URL path settings" of the node. This is great and gives me nice clean URL's.

However in my comments field in the view when I go to "REWRITE RESULTS" "Output this field as a link" and set the "Link Path" I am unable to find a token that gives me the same clean url that my title field can have or even my Node: Link field.

Is it possible to use the clean urls for comments and if so what is the token?

1 Answer 1

1

I'm not sure this can be done through rewriting, it's quite limited and never has given me what I want. At any rate you could be better off if you used the row-theming technique, which is in turn powerful. Then you could build your own links the way you want, wrapping the URLs in drupal_get_path_alias to get nice-looking addresses.

1
  • If I wrap a clean url in drupal_get_path_alias will the url remain unchanged? I ask as I get clean urls and no clean urls depending on context but have one template for both situations.
    – dibs
    Jun 21, 2012 at 2:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.