Is there any possibility to use the lnid in a views table?

id Title
-- ----------
1 one title
2 an other title

Regards

Comments

jjemmett’s picture

I also need this functionality. Is there anyone who could post a patch for this while we are waiting for this request to be assigned?

ausvalue’s picture

I have created views integration for the Type local nids module for Drupal 6 with the current Views 2. I'm not sure of the differences between Drupal 6 and Drupal 5 so don't know how hard it is to convert back to D5.

Full details for the D6 integration are given in

http://drupal.org/node/253491

Hope this helps
Ken
http://www.ausvalue.com

wibe’s picture

Just a thought: I believe this could be easily done by first creating a CCK field to hold the lnid (see #313476: Problem with CCK computed field) and then just referencing to it in Views.

emdalton’s picture

That's how I would do it in the short term.

jbrown’s picture

Status: Active » Closed (duplicate)
emdalton’s picture

One problem with using a computed field is that it doesn't get created until a node is created or edited. So it's hard to retrofit it to an existing content type. (Adding this here because the advice to use a computed field is here.)