Needs review
Project:
NodeReferrer
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2009 at 15:42 UTC
Updated:
1 Mar 2011 at 00:47 UTC
Jump to comment: Most recent file
Comments
Comment #2
pztrick commentededit>>
decided my problem was quite different, so opened my own issue.
Comment #3
andypostCurrent state -dev so fixes and patches are welcome
I see no reason to include unpublished else try views
Comment #4
andypostComment #5
sylvaticus commentedI have the same problem here.. I use nodereferrer to list reviewes of article. In this case I want keep my reviews unplublished but still show them to the admins.
So I suggest that in the internal query that nodereferrer perform instead of having a "published" filter it adds a "published or admin" one, to allow admins to see the records.
Comment #6
dwightaspinwall commentedSimple patch that pulls the publish check (status=1) so all referencers appear.
Comment #7
dwightaspinwall commentedOn second thought, I have little confidence in my patch in #7 and recommend instead using a module like Viewfield (http://drupal.org/project/viewfield) for advanced display of referencees in a node's view.
BTW, thanks for a great module Andy.
Comment #8
stinky commentedSubscribe.
I too would like nodereferrer to work with unpublished content. I'll try viewfield, but I don't think it's going to accomplish what I need.
Comment #9
christianchristensen commentedWithout breaking the API it is possible to also control the published (status) filter. This should cover being able to filter by published, unpublished, or both. Please see patch.
Comment #10
andypost#9 seem reasonable but still no UI present
Comment #11
christianchristensen commentedCould you direct me where to the UI portion - I thought this was an API call; views handlers actually behave fine b/c they build the SQL in the handler and have the status as part of the views options.
Comment #12
christianchristensen commentedCould you direct me where to the UI portion - I thought this was an API call; views handlers actually behave fine b/c they build the SQL in the handler and have the status as part of the views options.
Comment #13
andypost@christianchristensen I mean that you could implement this as settings for field. A checkbox is enough.
Also is_null() make no sense because $is_puplished have default value and also better to use isset()
Comment #14
glennpratt commentedRe-roll with requested changes.
I rewrote it to be a little more explicit, since I think NULL should result in default behavior (i.e. return only published nodes).
Comment #15
glennpratt commentedMissed an extra space in the SQL. Boo to concatenated SQL strings.
Comment #16
glennpratt commentedShoot, forgot to set status. We've been running live with the patch in #15 since I posted it.
Comment #17
rokrThis features is needed! Just investigated why nodereferrer stopped working (showing up) after i unpublished about 2000 nodes.
+1
cheers, Ronald