If I want to provide links in the profile for cck nodes or flexinodes, I get a list that looks like this:

User Content

content_contentname
flexinode-2

How do I replace the sub-headers ('content_contentname' and 'flexinode-2', in the example) for the friendly name of the node types?

I tried to use localization>manage strings. If I search these strings, they are found, but the translations are not applied to the profile pages.

CommentFileSizeAuthor
#1 usernodes_0.patch1.32 KBallie micka

Comments

allie micka’s picture

Status: Active » Needs review
StatusFileSize
new1.32 KB

This module is only trying to use node names on flexinode types. Instead, it should be using the all-purpose node_get_name call.

On ca. line 85, this line:

  (function_exists('flexinode_node_name') && substr($type, 0, 10) == 'flexinode-') ? $typename = flexinode_node_name($type) : $typename = $type;

should become:

  $typename = node_get_name($type);
dtabach’s picture

Thanks Allie. Usernodes is much more user-friendly now!

allie micka’s picture

Project: » Guest Pass
Version: » master
Status: Needs review » Closed (fixed)

Closing this orphaned issue so it no longer shows up on my "My Issues" page. Changing project to "guestpass" because I can't otherwise save the issue, and I know that project is pretty inactive.