in activity settings instead of [node-type] only.

cheers, Ronald

Comments

jaydub’s picture

What are you wanting to display ultimately? The value of the [node-type] token is actually the 'human-readable' version of the node type returned via theme_activity_node_type. If you want to modify the display of the token you could always override the theme function and return anything you need based off of the node's 'machine-readable' type that is passed to the theme function.

rokr’s picture

Ok, that was not precise enough. In comment activity i couldn't find the human readable node-type of parent node.

jaydub’s picture

Version: 5.x-4.x-dev » 6.x-1.x-dev
Issue tags: +activity-6.x-1-2
jaydub’s picture

Status: Active » Closed (fixed)

What you are looking for is the [parent-node-type] token that is defined in the commentactivity.module.

That token receives the value of the theme_activity_node_type() function mentioned above which you can override if you want to show the human readable node type other than the default.

rokr’s picture

Thanks for pointing me to the right direction. I didn't get it because of 'strtolower' in theming function which let me think it's just the type not the name of the node type. Now it works fine and i just added definite articles to the human readable names (via theming function) which is useful in german.

Thanks again, Ronald

jaydub’s picture

yeah the strtolower is there because the node type is often going to be displayed in the middle of a sentence (joe updated the story 'foo') and to have the node type be capitalized in that case is probably not the default behaviour you want.