Would it be possible to add support for extensions for example of i18n? I18n adds a tnid to the node (the nid of the node that has been translated).

Another option would be a configuration page to select which attributes of a node should be displayed (by role?)

CommentFileSizeAuthor
#5 patch.txt1.26 KBstratosgear

Comments

todd nienkerk’s picture

Component: Miscellaneous » Code

@druppi: To address the first issue, I can certainly try, but I'm totally unfamiliar with i18n. Can you give me an example of how this data is stored in the node object?

Your second request is totally unrelated to the issue at hand and should be submitted as a separate feature request. However, please keep in mind that this module is intended as an administrative utility to allow those with permission to view the "About This Node" block a quick reference as to the status of a node. In my opinion, changing the output of this block based on role adds unnecessary complication to what should be a narrowly focused module.

Please feel free, though, to post a feature request. If there's a demand for it, I'll certainly supply it.

todd nienkerk’s picture

I've played around with i18n a bit, and here's what I think is going on:

  • If tnid for a node = 0, it's neither a translated node nor a translation.
  • If tnid for a node = its own nid, it's the source of a translation.
  • If tnid for a node = neither 0 nor its own nid, it's a translated node. In this case, tnid is the nid of the original node.

Sound about right?

pepe roni’s picture

You're right. And tnid is not an i18n-extension but an extension(?) of the locale module, thus within core!

stratosgear’s picture

Status: Active » Needs review

I've added i18n support.

It adds a "Translation status" item. It lists the titles of all translated nodes (linking to the node itself), and it encloses the source translation language in square brackets.

Something like:

# Translation status:
Greek: The Greek node title
[English]: The English node title

stratosgear’s picture

StatusFileSize
new1.26 KB

Doh,

I forgot to attach the patch file. Sorry...

todd nienkerk’s picture

Version: 6.x-1.0-rc3 » 6.x-1.x-dev

Committed to 6.x-1.x-dev. Thanks!

Can you verify that this works?

todd nienkerk’s picture

Assigned: Unassigned » todd nienkerk
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.