Postponed
Project:
Edit Views
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2013 at 15:52 UTC
Updated:
23 Feb 2014 at 19:32 UTC
Jump to comment: Most recent, Most recent file
I have created a view which outputs project thumbnails, but I needed to rewrite the output of all the fields so I used the Global Text field.
When you use the global text field in views to output, after including it on the page the edit module produces a "The requested page could not be found."
Comments
Comment #1
gilbot commentedComment #2
socialnicheguru commentedsince there is no patch to review, this should be "active"
Comment #3
darren ohThis patch fixed the problem for me.
Comment #4
saltednutThis is also a problem with relationships. I think we could combine this solution with an additional check to see if the field is provided via relationship, and if so, do not make it editable since it belongs to an untraceable entity.
Comment #5
saltednutSynatx error in #4. My bad.
Comment #6
saltednutOh jeez. Slow down, brantwynn...
This patch is tested and working on my end. Sorry about the messed up patches in #4 and #5.
Comment #7
frikovc commentedI tested patch and it is working on my configuration. I am still trying multiple configurations to test this module how it handles different scenarios.
default node template:
What I found out is that if I use regular drupal node template for displaying nodes I can change node properties such as author and creation date, and all other fields.
panels:
In combination with panels I can't change author of the node nor creation date (adding them from panels "add content" under "node" group of fields and properties).
panels + views
When using panels in combination with views a field "date created" can be edited but author's name (via relationship) can't be - this is because of this patch and because we don't want to change author's name. When adding field content->author's id in views without relationship to author I get "The requested page could not be found." popup window. This is part of node as it is a node property that relates to user. This is still a bug that patch #6 doesn't resolve.
What I would like to accomplish: change node properties such as author of the node and creation date via views. Any suggestions?
Also is there a way to select to which parts of website can use edit module (per content types, views, panels...)?
Comment #8
socialnicheguru commentedthis patch fixes a similar issue
https://drupal.org/node/1830518#comment-7303322
Comment #9
cangeceiro commentedI can confirm that this patch works for me as well
Comment #10
darren ohComment #11
kristen polComment #12
geek-merlinI can confirm that the patch in #6 works as announced.
Code looks just fine.
Asked for maintainer advice in #1830518: Views integration (use Views' render pipeline to re-render edited fields in Views).
Comment #13
kevinsiji commentedI can confirm that this patch works for me also.
Comment #14
wrd commentedI'm getting the error described here:
https://drupal.org/node/2000830
...but only in webkit-based browsers. As that issue was closed and linked here, I tried patch #6,
but it didn't work for me. I'm using a global PHP field, rather than a global text field.Edit: It worked fine. I just...made a stupid mistake. Patch fixed the problem for me. Thanks!
Comment #15
socialnicheguru commented#6 does work
Comment #16
dmsmidt#6 does the job for me also
Comment #17
wrd commentedI'm also getting this error on views that display a Link field. Disabling Edit or removing the Link field from display makes the error go away.
Comment #18
wim leersPlease see #2149185: Figure out a way to *start* in-place editing inside a View — on a per-entity basis, just like elsewhere on the problems we need to solve before we can make Edit + Views integration a reality.
This issue is blocked on that issue.
Comment #19
jessebeach commentedIn the 7.x-1.0 branch of Edit, the
edit_preprocess_views_view_fieldfunction does not exist. I went back to commit cf62974 when this function existed and copied it back into Edit.I'm not entirely sure how to test of the original problem that the patch in #6 addressed, but, after testing with Edit and Views I've at least convinced myself that this patch doesn't break anything obvious.
Comment #20
saltednutRegarding #19, I believe all that functionality was moved to https://drupal.org/project/edit_views
Comment #21
wim leers#20 is correct.
Comment #22
saltednutThis patch is for the earlier version of Edit (revision cf62974) - sets up a whitelist for known problematic fields. To be applied on top of #6. (You can safely ignore, its just a monkeypatch for some specific builds we are trying out and I needed a public place to post it)