I would like to use the nodereference module to show related links to a node. But I don't want to use the related nodes title for creation of the links. I would like to optionally define the title of the link, as a kind of override.
Would it be possible to add a optional field for overriding the link title. It could be as an optional field setting.
Comments
Comment #1
yched commentedCustomizing the display to your own special needs is precisely what theming is here for - the module itself can't provide all possible options here.
Define a special template for your field (see theme/README.txt in your cck folder),
and inside do something like
Turning this into a support request.
Comment #2
yched commentedI forgot the
<?php ... ?>tags around theprint l(...)part.You'll have corrected yourself :-)
Comment #3
NaX commentedI looked at doing it this way, but the problem I have is that title of the links can be specific to that link and is not part of the $node var. I have sort of hacked this module to add this feature but I just need to finish it off. I will post a patch later for review.
Thanks.
Comment #4
yched commentedOK, I think I get it.
You want to be able to pick a node to refer to AND give a custom "alias" to be used as the text for the link instead of the node title.
Why not - This is not going to be possible for the select / multiple widget, though.
Comment #5
drewish commentedi'd love for node reference to allow an additional field describing the node relation...
Comment #6
summit commentedSubscribing, still interested in this for D5.
greetings,
Martijn
Comment #7
Manonline commentedHi all... there is a way to override the title display of a nodereference in a view result?
I tried to rewrite the output of the field as a link in the view, but when the content's nodereference field is empty, the link still appearing.
thanks and sorry for my english.
Comment #8
karens commentedClosing old issues. None of us is using the D5 version any more, so hard to provide any support. Sorry.