Download & Extend

NodeReferrer in Automatic Title Generation?

Project:NodeReferrer
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Is there a way to utilize NodeReferrer in creating Automatically generated titles? I need a way to create title fields utilizing the title of referential nodes.

Comments

#1

Version:6.x-1.0-beta1» 6.x-1.x-dev
Priority:critical» normal

Same question, probably a feature request ;)

#2

"create title fields utilizing the title of referential nodes"
Do you mean use the title of the node that is referring (has a node reference field) to a new node, with which you would place this title of the node with the node reference field in the title of the new node that this reference refers to?

There is no tokens for back referenced node titles. Maybe using a Node reference auto-create module https://drupal.org/project/autocreate https://drupal.org/project/nodereference_autocreate you could use the token of the current node in the title field of the new node (as added through the interface supplied by these modules). I don't know if Node reference auto-create allows default field values or uses tokens from the current node though, but this feature would have a lot of applications.

I would use Corresponding Node References https://drupal.org/project/cnr to automatically create the back reference node references instead of using NodeReferrer to rely upon back-reference relationships (which can't be called through token, yet...). Upon syncing the node reference, you should have a token for the Referenced Node Title. You can then use this to create your desired setup.

Weird situation may arise if the referenced node that you want to use in the title of a node you are now creating does not exist yet. This may be able to be solved by combining Corresponding Node References solution with the Node reference auto-create module. Since both nodes would be created at the same time & the synced references would as well, which would then produce desired results. OTHERWISE you will have to use views bulk operations https://drupal.org/project/views_bulk_operations to bulk update the automatic nodetitiles after both nodes have been created. OR You could trigger the 1st nodes title to be re-built upon creating a new node that has a node reference field which refers to that original node through using Rules module https://drupal.org/project/rules

These are all just hypothesis, but one of the solutions should work the 1st time or automatically (without having to go in and re-trigger node title re-building).

PLEASE POST WHICH SOLUTION WORKS THE BEST. Thanks

#3

Installing a bunch of additional (heavyweight) modules like Rules or adding additional fields (CNR) plus using modules without even a stable release and a very small user base (Node reference auto-create) doesn't sound suitable to base an essential functionality like building node titles on it. This is too much overhead and way too fragile.

This functionality is definitely needed within the Nodereferrer module, but thanks for sharing your ideas anyway!

#4

@asb - Ok. The CNR solution would provide more data besides just the Node Title, but if you want it simple ->

You should make NodeReferrer provide a token for the "title of referential nodes" then auto-generate the title with that token via http://drupal.org/project/auto_nodetitle

#5

Category:support request» feature request

Yes, that's what this issue is about: Let the Nodereferrer module expose a token for the referring node titles that can be evaluated with the Automatic Nodetitle module to build node titles that include the referring node title.

Changing to feature request.

nobody click here