Help to construct pattern requested

yngens - August 5, 2008 - 00:44
Project:Automatic Nodetitles
Version:5.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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

#1

yngens - August 5, 2008 - 00:51

When 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.

 
 

Drupal is a registered trademark of Dries Buytaert.