Hello. If there's a way to do this, I'm totally clueless to it, so this is may be a Feature Request rather than a support request.
We have a content type that requires both a Title field and a Feature Title field. This is due to the fact that we have a requirement to have a different title on the News section of the home page than the actual title of the content. This News section is a view with just the Feature Title text field listed and I need those to link to those news items. Text fields do not have the check-box which gives the option to link back to the content so I am forced to try and use "Rewrite Results".
I cannot, for the life of me, figure out how to get the Feature Title text field to link to the content itself. I notice that under Configure field > Rewrite results > Output this field as link you can define a link, but the list of replacement patterns is very slim. When I try to put [path], it renders as %5Bpath%5D.
It says "if you need a field not listed here, rearrange your fields". What the heck does that mean? I've moved this field up and down in the list and it doesn't give me any new replacement options.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | views-1475230-11.patch | 6.57 KB | tim.plunkett |
| #9 | views-1475230-9.patch | 7.71 KB | tim.plunkett |
| #5 | 1475230-node-path-no-base.patch | 6.37 KB | dawehner |
Comments
Comment #0.0
loopy1492 commentedClarified.
Comment #1
loopy1492 commentedOh. You have to add the content path as a field in the view. Got it. At least it's here for posterity.
Comment #2
loopy1492 commenteddouble post
Comment #3
loopy1492 commentedPlease see my comment here:
http://drupal.org/node/1466274#comment-5710716
This is a really clunky process and should probably be cleaned up.
Comment #4
tim.plunkett"Needs review" is for issues with a patch. However, I do think this is a good idea.
Comment #5
dawehnerHere is a small path with this feature as addition and a test.
Comment #7
dawehner#5: 1475230-node-path-no-base.patch queued for re-testing.
Comment #9
tim.plunkettAdding some debug messages to see what's going on. Locally it passes fine, but I don't have a prefix or anything to mess up the base path.
Comment #11
tim.plunkettWhoops, forgot to pull first.
Comment #13
tim.plunkettThe latest failure shows that clean URLs aren't being used in the test, how do we turn that on?
Comment #13.0
tim.plunkettclarified