Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi all,
I am using token module to auto generate node titles for node comments (http://drupal.org/project/nodecomment). So one node comment can be a reply to another node in node_comments_threaded view. I am unsuccessfully trying to construct php pattern that would generate auto title in the following way:
title of the first node comment
body of the first comment
re: title of the first node comment
body of the reply to the first comment
Comments
Comment #1
yngens CreditAttribution: yngens commentedWhen I press 'Reply' link under the node comment, it opens comment submission form in a window with the following URL:
http://www.mysite.com/node/add/comment/44/65
Where 44 is the nid of the top root node, which I am not interested in. But the second parameter 65 is the nid of the comment to which I am replying. So I guess it is possible to take this nid (65), derivate its title, apply 're:' prefix string to it and generate needed title. But I am not a coder, so I am having difficulty in how to generate title of the node comment to which I am replying.
Any help would be appreciated.
Comment #2
manish-31 CreditAttribution: manish-31 at OpenSense Labs for DrupalFit commented