Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When the reference node is unpublished, currently it is displayed as
node title (unpublished)
How can I remove the "(unpublished)" part?
Comments
Comment #1
benanne CreditAttribution: benanne commentedI'd also like to know how to remove this. I checked the field configurations and the views that use those fields to see if there are any options regarding this addition, but I haven't found any.
Comment #2
giorgio79 CreditAttribution: giorgio79 commentedComment #3
fgmThis does not seem to be the case currently. The referenced node is now just wrapped in a
<span class="node-unpublished">
element, without additional words.Can you still see it in any way ?
Comment #4
giorgio79 CreditAttribution: giorgio79 commentedThanks will check, have not yet immersed myself in D7 but I was told I have to put such requests for D7. Perhaps benanne can confirm :)
Comment #5
danielb CreditAttribution: danielb commentedI don't see anywhere in the Drupal 7 code that outputs (unpublished), whereas in the Drupal 6, it is there in the formatters:
theme_nodereference_formatter_default()
theme_nodereference_formatter_plain()
If you're still on Drupal 6, you can easily override this stuff, since it is themeable
Check out the theme guides if you don't know how http://drupal.org/node/457740
Comment #6
fgmReturning to CCK 6.2.8, according to #2 and #5
Comment #7
rlnorthcuttThe "(Unpublished)" string is properly wrapped with the t() function - so you can "translate" it to nothing. Use the strong override in the settings.php for your site and make it blank:
Since this is so old, I'm marking it closed as well.